Skip to content

Commit

Permalink
Merge pull request #595 from ostelco/feature/add-firebase-auth-prod
Browse files Browse the repository at this point in the history
Add firebase security definitions to swagger spec.
  • Loading branch information
prasanthu authored May 7, 2019
2 parents 9583490 + e8960a0 commit 51d95ac
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions prime/infra/prod/prime-customer-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ paths:
type: string
security:
- auth0_jwt: []
- firebase: []
"/context":
get:
description: "Get context which is customer and region details."
Expand All @@ -44,6 +45,7 @@ paths:
description: "Customer not found."
security:
- auth0_jwt: []
- firebase: []
"/customer":
get:
description: "Get customer info (email-id present in the bearer token)."
Expand All @@ -59,6 +61,7 @@ paths:
description: "Customer not found."
security:
- auth0_jwt: []
- firebase: []
post:
description: "Create a new customer."
consumes:
Expand Down Expand Up @@ -92,6 +95,7 @@ paths:
description: "Failed to store customer"
security:
- auth0_jwt: []
- firebase: []
put:
description: "Update an existing customer."
consumes:
Expand Down Expand Up @@ -121,6 +125,7 @@ paths:
description: "Failed to update customer info."
security:
- auth0_jwt: []
- firebase: []
delete:
description: "Remove customer."
produces:
Expand All @@ -133,6 +138,7 @@ paths:
description: "Customer not found."
security:
- auth0_jwt: []
- firebase: []
"/regions":
get:
description: "Get all regions and region details like SIM Profiles for that region."
Expand All @@ -146,6 +152,7 @@ paths:
$ref: '#/definitions/RegionDetailsList'
security:
- auth0_jwt: []
- firebase: []
"/regions/{regionCode}":
get:
description: "Get region details like SIM Profiles for a region."
Expand All @@ -167,6 +174,7 @@ paths:
description: "Region not found."
security:
- auth0_jwt: []
- firebase: []
"/regions/{regionCode}/kyc/jumio/scans":
post:
description: "Get a new Id for eKYC scanning."
Expand All @@ -188,6 +196,7 @@ paths:
description: "Region not found."
security:
- auth0_jwt: []
- firebase: []
"/regions/{regionCode}/kyc/jumio/scans/{scanId}":
get:
description: "Get status of eKYC scan."
Expand All @@ -214,6 +223,7 @@ paths:
description: "Region or Scan not found."
security:
- auth0_jwt: []
- firebase: []
"/regions/sg/kyc/myInfo/{authorisationCode}":
get:
description: "Get Customer Data from Singapore MyInfo service."
Expand All @@ -235,6 +245,7 @@ paths:
description: "Person Data not found."
security:
- auth0_jwt: []
- firebase: []
"/regions/sg/kyc/dave/{nricFinId}":
get:
description: "Get Customer Data from Singapore MyInfo service."
Expand All @@ -254,6 +265,7 @@ paths:
description: "Invalid NRIC/FIN ID"
security:
- auth0_jwt: []
- firebase: []
"/regions/sg/kyc/profile":
put:
description: "Update Singapore Customer's address and phone number."
Expand All @@ -276,6 +288,7 @@ paths:
description: "Successfully updated customer's details."
security:
- auth0_jwt: []
- firebase: []
"/regions/{regionCode}/simProfiles":
get:
description: "Get SIM profile for the user (identified by bearer token)."
Expand All @@ -299,6 +312,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
post:
description: "Provision SIM Profile for the user (identified by bearer token)."
produces:
Expand All @@ -325,6 +339,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
"/regions/{regionCode}/subscriptions":
get:
description: "Get subscription (msisdn) for the user (identified by bearer token)."
Expand All @@ -346,6 +361,7 @@ paths:
description: "No subscription found for this user."
security:
- auth0_jwt: []
- firebase: []
"/subscriptions":
get:
description: "Get subscription (msisdn) for the user (identified by bearer token)."
Expand All @@ -361,6 +377,7 @@ paths:
description: "No subscription found for this user."
security:
- auth0_jwt: []
- firebase: []
"/applicationToken":
post:
description: "Store application token"
Expand Down Expand Up @@ -388,6 +405,7 @@ paths:
description: "Not able to store token."
security:
- auth0_jwt: []
- firebase: []
"/paymentSources":
get:
description: "Get all payment sources for the user."
Expand All @@ -405,6 +423,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
post:
description: "Add a new payment source for user"
produces:
Expand All @@ -429,6 +448,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
put:
description: "Set the source as default for user"
produces:
Expand All @@ -453,6 +473,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
delete:
description: "Remove a payment source for user"
produces:
Expand All @@ -477,6 +498,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
"/products":
get:
description: "Get all products for the user."
Expand All @@ -492,6 +514,7 @@ paths:
description: "No products found for the user."
security:
- auth0_jwt: []
- firebase: []
"/products/{sku}/purchase":
post:
description: "Buy the product specified in sku parameter."
Expand Down Expand Up @@ -524,6 +547,7 @@ paths:
description: "Product not found."
security:
- auth0_jwt: []
- firebase: []
"/purchases":
get:
description: "Get list of all purchases."
Expand All @@ -544,6 +568,7 @@ paths:
description: "Service Unavailable"
security:
- auth0_jwt: []
- firebase: []
"/bundles":
get:
description: "Get bundles (balance) for the user (identified by bearer token)."
Expand All @@ -559,6 +584,7 @@ paths:
description: "No bundle found for this user."
security:
- auth0_jwt: []
- firebase: []
"/referred":
get:
description: "Get list of people whom the user has referred to."
Expand All @@ -574,6 +600,7 @@ paths:
description: "No referrals found for this user."
security:
- auth0_jwt: []
- firebase: []
"/referred/by":
get:
description: "Get the people who had referred this user."
Expand All @@ -589,6 +616,7 @@ paths:
description: "No 'referred by' found for this user."
security:
- auth0_jwt: []
- firebase: []
"/graphql":
post:
description: "GraphQL endpoint"
Expand All @@ -606,6 +634,7 @@ paths:
description: "Not found"
security:
- auth0_jwt: []
- firebase: []
parameters:
- name: "request"
in: body
Expand Down Expand Up @@ -929,3 +958,10 @@ securityDefinitions:
x-google-issuer: "https://auth-dev.oya.world/"
x-google-jwks_uri: "https://auth-dev.oya.world/.well-known/jwks.json"
x-google-audiences: "http://google_api"
firebase:
authorizationUrl: ""
flow: "implicit"
type: "oauth2"
x-google-issuer: "https://securetoken.google.com/pi-ostelco-prod"
x-google-jwks_uri: "https://www.googleapis.com/service_accounts/v1/metadata/x509/[email protected]"
x-google-audiences: "pi-ostelco-prod"

0 comments on commit 51d95ac

Please sign in to comment.