openapi: 3.0.0 info: title: Gravitee-Token version: 1.0.0 description: An API retrieving access token details from Gravitee Access Management. contact: name: SKF Integration Platform team url: www.skf.com email: dl.exga.532@skf.com servers: - url: https paths: /oauth/token: post: summary: Post Enlight credentials and retrieve access token details from Gravitee Access Management. description: Enlight credentials will be validated against the Enlight identity provider in Gravitee and a JWT token which is encoded with Enlight iToken,aToken,companyId & email details will be retrieved. parameters: - name: Authorization in: header description: Basic authentication key to access the Gravitee Access Management.This key is an encoded value of client id & client secret example: Basic asdasfcasasckrv0NzMtZjEzY2U4NmMzNDJlOkhyR1FWUUlafvsdascasU2o0Rkk1Skcasdcacac= required: true schema: type: string requestBody: description: Customer Enlight credentials required: true content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/enlightCredentials' responses: '200': description: Access token details from Gravitee Access Management content: application/json: schema: $ref: '#/components/schemas/tokenDetails' '400': description: Missing grant_type/username/password in the body form-urlencoded parameters or invalid vales passed in the fields. content: application/json: schema: $ref: '#/components/schemas/invalidRequest' '401': description: Missing Authorization field in the header or invalid value passed content: application/json: schema: $ref: '#/components/schemas/missingAuthorization' '404': description: Invalid resource/method passed in the API request components: schemas: enlightCredentials: properties: grant_type: description: Grant type to gain token details type: string example: password username: description: Enlight authentication username type: string example: manoj.kumar.nadipalli@skf.com password: description: Enlight authentication password type: string example: '*********' tokenDetails: properties: access_token: type: string example: askhscjZNLcnklckiqwcascajjkascbsjkbvsdjnvjlnsdlnjvnjlnvlknjnvnsdqwewqenkvjqutjndhjMKllalkscfasdhcjdchslcjXIubmFkaXBhbGxpQHNrZi5jb20iLCJsb2NhbGUiOiJlbiIsImVubGlnaHRFdWxhQWdyZWVkRGF0ZSI6IjIwMjAtMDUtMTJUMDc6NTU6MTFaIiwiYXVkIjoiNzFqYTJlamQ2NThqc20wdWg1bXNzbTVsbWsiLCJlbmxpZ2h0QWNjZXNzIjoiNDBjOWEzOGEtZTA3My00N2ViLWFlMmYtYjMwYWEyYzc2OWMwLGE2MTE4ODQ1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4RVM0YXYzOG95NThhczNqRFZ1YkIwcFZITi1MRm5DTlNzTHBwZENnSjBGd3dWMWt1SzRFT090dndUXzlqeHQ1M3NJRGUwVV9FejZLMlRhbVZ1cnRWWndSYXNpT0xBNTM3RGZMUVduSzJhQUd4N0VkNGo2eXltQkVoRzlCMXY0NENibVZZU0hxYzc2N0RsU0xXYU5YV3hVWVB0TTdodUdlZU8wVHd5OEFtZHVpZjhuZkhQcVFhSzBuSncwNGlhWVU1Tzhpclh2VllzV2t3Tkw3cTJqTnIzZHhPRmxfYWhUZyAiLCJjb21wYW55SWQiOiIgNDBjOWEzOGEtZTA3My00N2ViLWFlMmYtYjMwYWEyYzc2OWMwICIsImRvbWFpbiI6InNrZi1kZXYiLCJpc3MiOiJodHRwczpcL1wvYW0uZGV2LmdyYXZpdGVlLnNrZi5j token_type: type: string example: bearer expires_in: type: number example: 3599 invalidRequest: properties: error: type: string example: invalid_grant error_description: type: string example: Unable to validate credentials. The user account you are trying to access may be experiencing a problem. missingAuthorization: properties: error: type: string example: invalid_client error_description: type: string example: "Invalid client: missing or unsupported authentication method"