diff --git a/api/Identity-Provider.yaml b/api/IdentityProvider.yaml similarity index 91% rename from api/Identity-Provider.yaml rename to api/IdentityProvider.yaml index c66bf30..5e79e3c 100644 --- a/api/Identity-Provider.yaml +++ b/api/IdentityProvider.yaml @@ -4,10 +4,6 @@ x-stoplight: info: title: ID Building Block version: '1.0' - contact: - name: MOSIP Team - email: info@mosip.io - url: 'https://www.mosip.io/' description: |- This API document details on the below categories of endpoints - access_token: + accessToken: type: string description: The access token in JWT format. This token will be used to call the UserInfo endpoint. Relying party application should handle access token as opaque. - token_type: + tokenType: type: string default: Bearer enum: - Bearer description: 'The type of the access token, set to Bearer' - expires_in: + expiresIn: type: number format: duration description: 'The lifetime of the access token, in seconds.' required: - - id_token - - access_token - - token_type - - expires_in + - idToken + - accessToken + - tokenType + - expiresIn headers: Cache-Control: schema: @@ -1149,7 +1142,7 @@ paths: schema: type: object properties: - grant_type: + grantType: type: string description: Authorization code grant type. enum: @@ -1157,27 +1150,27 @@ paths: code: type: string description: 'Authorization code, sent as query param in the client''s redirect URI.' - client_id: + clientId: type: string description: Client Id of the OIDC client. - client_assertion_type: + clientAssertionType: type: string enum: - 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' description: Type of the client assertion part of this request. - client_assertion: + clientAssertion: type: string description: 'Private key signed JWT, This JWT payload structure is defined above as part of request description.' - redirect_uri: + redirectUri: type: string description: Valid client redirect_uri. Must be same as the one sent in the authorize call. required: - - grant_type + - grantType - code - - client_id - - client_assertion_type - - client_assertion - - redirect_uri + - clientId + - clientAssertionType + - clientAssertion + - redirectUri description: '' tags: - OIDC @@ -1226,7 +1219,7 @@ paths: { "name" : "John Doe" } - **Response 3**: When Claims are requested with claims_locales : "en fr" + **Response 3**: When Claims are requested with claimsLocales : "en fr" { "name#en" : "John Doe", "name#fr" : "Jean Doe", "phone" : "033456743" } @@ -1234,10 +1227,10 @@ paths: tags: - OIDC security: - Authorization-access_token: [] parameters: [] - /wallet-binding: + /walletBinding: post: summary: Wallet Binding Endpoint (Draft) operationId: post-wallet-binding @@ -1289,12 +1282,12 @@ paths: errorCode: type: string enum: - - unsupported_challenge_format - - key_binding_failed - - invalid_public_key - - invalid_auth_challenge - - duplicate_public_key - - invalid_request + - unsupportedChallengeFormat + - keyBindingFailed + - invalidPublicKey + - invalidAuthChallenge + - duplicatePublicKey + - invalidRequest errorMessage: type: string required: @@ -1349,7 +1342,7 @@ paths: tags: - Wallet - QR Code parameters: [] - /.well-known/jwks.json: + /.wellKnown/jwks.json: get: summary: JSON Web Key Set Endpoint tags: @@ -1417,7 +1410,7 @@ paths: operationId: get-certs description: Endpoint to fetch all the public keys of the IDBB server. Returns public key set in the JWKS format. parameters: [] - /.well-known/openid-configuration: + /.wellKnown/openidConfiguration: get: summary: Configuration Endpoint tags: @@ -1433,63 +1426,63 @@ paths: issuer: type: string description: URL using the https scheme with no query or fragment component that the RP asserts as its Issuer Identifier. This also MUST be identical to the iss Claim value in ID Tokens issued from this Issuer. - authorization_endpoint: + authorizationEndpoint: type: string description: URL of the OAuth 2.0 Authorization Endpoint. - token_endpoint: + tokenEndpoint: type: string description: URL of the OAuth 2.0 Token Endpoint. - userinfo_endpoint: + userinfoEndpoint: type: string description: URL of the OP's UserInfo Endpoint. - jwks_uri: + jwksUri: type: string description: 'URL of the OP''s JSON Web Key Set [JWK] document.' - registration_endpoint: + registrationEndpoint: type: string description: URL of Client Registration Endpoint. - scopes_supported: + scopesSupported: type: array description: 'JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports.' items: type: string enum: - openid - response_types_supported: + responseTypesSupported: type: array description: JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. items: type: string enum: - code - acr_values_supported: + acrValuesSupported: type: array description: JSON array containing a list of the Authentication Context Class References that IDP supports. items: {} - userinfo_signing_alg_values_supported: + userinfoSigningAlgValuesSupported: type: array description: 'JSON array containing a list of the JWS [JWS] signing algorithms.' items: {} - userinfo_encryption_alg_values_supported: + userinfoEncryptionAlgValuesSupported: type: array description: 'JSON array containing a list of the JWE [JWE] encryption algorithms.' items: {} - userinfo_encryption_enc_values_supported: + userinfoEncryptionEncValuesSupported: type: array description: 'JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT.' items: {} - token_endpoint_auth_methods_supported: + tokenEndpointAuthMethodsSupported: type: array description: JSON array containing a list of Client Authentication methods supported by this Token Endpoint. items: type: string enum: - private_key_jwt - display_values_supported: + displayValuesSupported: type: array description: JSON array containing a list of the display parameter values that the OpenID Provider supports. items: {} - claim_types_supported: + claimTypesSupported: type: array description: JSON array containing a list of the Claim Types that the OpenID Provider supports. items: @@ -1498,35 +1491,35 @@ paths: - normal - aggregated - distributed - claims_supported: + claimsSupported: type: array description: JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. items: type: string - claims_locales_supported: + claimsLocalesSupported: type: array description: Languages and scripts supported for values in Claims being returned. items: type: string - ui_locales_supported: + uiLocalesSupported: type: array description: Languages and scripts supported for the user interface. items: type: string - response_modes_supported: + responseModesSupported: type: array description: Mechanism to be used for returning parameters from the Authorization Endpoint. items: type: string enum: - query - token_endpoint_auth_signing_alg_values_supported: + tokenEndpointAuthSigningAlgValuesSupported: type: array items: type: string enum: - RS256 - id_token_signing_alg_values_supported: + idTokenSigningAlgValuesSupported: type: array items: type: string @@ -1534,13 +1527,13 @@ paths: - RS256 required: - issuer - - authorization_endpoint - - token_endpoint - - userinfo_endpoint - - jwks_uri - - registration_endpoint - - scopes_supported - - response_types_supported + - authorizationEndpoint + - tokenEndpoint + - userinfoEndpoint + - jwksUri + - registrationEndpoint + - scopesSupported + - responseTypesSupported operationId: get-.well-known-openid-configuration description: |- This endpoint is only for facilitating the OIDC provider details in a standard way. @@ -1571,9 +1564,9 @@ components: type: string description: Format of the challenge provided. enum: - - alpha-numeric + - alphaNumeric - jwt - - encoded-json + - encodedJson - number required: - authFactorType @@ -1604,19 +1597,19 @@ components: required: - type securitySchemes: - Authorization-add_oidc_client: + Authorization-addOidcClient: type: http scheme: bearer - description: Valid JWT issued by a trusted IAM system with "**add_oidc_client**" scope. - Authorization-update_oidc_client: + description: Valid JWT issued by a trusted IAM system with "**addOidcClient**" scope. + Authorization-updateOidcClient: type: http scheme: bearer - description: Valid JWT issued by a trusted IAM system including "**update_oidc_client**" scope. - Authorization-access_token: + description: Valid JWT issued by a trusted IAM system including "**updateOidcClient**" scope. + Authorization-accessToken: type: http scheme: bearer description: Access token received from /token endpoint - Authorization-wallet_binding: + Authorization-walletBinding: type: http scheme: bearer description: Valid JWT issued by a trusted IAM system with "**wallet_binding**" scope.