OAuth V2 API (2.0.0)
Download OpenAPI specification:Download
OAuth manages the JWT exchange for Google and Apple login methods.
Returns a JWT
GET /jwt4jwt
This endpoint is called when a user is logging into SME Connect through the Google or Apple login methods.
This endpoint fetches the Google or Apple OAuth token and exchanges it with a new User JWT for SME Connect.
This endpoint will return a JWT, User information, and token information.
Authorizations:
bearerAuth
Responses
Response samples
- 200
- 401
- 500
Content type
application/json
{- "session": {
- "token": "eyJhbGciOiJFUzM4NCIsImtpZCI6InRhZi1hZGFwdC1wcmV.zZW5jZS1tZWRpYS1zZXJ2ZXJsZXNzOjVlM2I0ZmRlZGU2Z.jRmZmY5ZDkwOTZlNDYxZTViOGI2In0",
- "user_info": {
- "auth_source": {
- "name": "smeconnect.dev",
- "code": "adapt-google-auth.additional-information.azure",
}, - "subject": "string",
- "uid": "testUser@turnaroundfactor.com",
- "name": "Test User",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "token_info": {
- "name": "smeconnect.dev",
- "code": "adapt-google-auth.additional-information.azure",
}
}
}