--- swagger: "2.0" info: x-ibm-name: internal-client-authentication-api title: Internal Client Authentication API version: 1.0.0 description: The Internal Client Authentication API is available to RAKBANK external-cloud-hosted Apps to generate OAuth access tokens using OAuth2 client credentials grant type. name: "" schemes: - https basePath: /v1 securityDefinitions: clientID: description: application's client_id in: query name: client_id type: apiKey security: - clientID: [] paths: /int_client_auth/token: post: consumes: - application/x-www-form-urlencoded produces: - application/json summary: Request Access Tokens description: "This endpoint allows requesting an access token following the \ Client Credentials (there isnt resource owner information) flow below:\n\n- Confidential clients should authenticate using HTTP Basic Authentication. \n" security: [] parameters: - name: grant_type in: formData description: Type of grant type: string required: true enum: - authorization_code - password - client_credentials - refresh_token - name: client_id in: formData description: Application client ID, can be provided in formData or using HTTP Basic Authentication required: false type: string - name: client_secret in: formData description: Application secret, must be provided in formData or using HTTP Basic Authentication required: false type: string - name: scope in: formData type: string description: Scope being requested required: true responses: 200: description: json document containing token, etc. schema: $ref: '#/definitions/access_token_response' 400: description: json document that may contain additional details about the failure x-ibm-configuration: testable: true enforced: true phase: realized type: oauth definitions: access_token_response: type: object additionalProperties: false required: - token_type - access_token - expires_in properties: token_type: enum: - bearer access_token: type: string expires_in: type: integer scope: type: string refresh_token: type: string x-ibm-endpoints: - endpointUrl: https://sandboxapi.rakbank.ae/sb/api type: - production - development ...