Authn API (2.0.0)
Download OpenAPI specification:Download
Authn provides the main gateway into the SME Connect services. It provides a JWT that is used to authorize users for services such as Presence, Signal, and Graylog.
Logs into Authn Service
GET /login
The login process occurs once a user has a valid JWT token provided by either OAuth or ClientAuth services. When a user logs into SME Connect, the authn login
endpoint will create a valid service session and return a session cookie to the user. This cookie is valid for a 2 hour window. The session cookie
stores the user's credentials, which will then be used to authorize the user to interact with the JWT.
Authorizations:
header Parameters
| x-adapt-host | string |
| x-adapt-handler | string |
| x-adapt-url | string |
Responses
Response samples
- 200
- 401
- 500
{- "session": {
- "auth_source": {
- "name": "string",
- "code": "string",
- "origin": "string"
}, - "subject": "string",
- "uid": "user@example.com",
- "name": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}
}Gets a JWT
GET /jwt
The session cookie from the login endpoint is used to get a valid JWT. This token will then be used to authorize the user to interact with the
SME Connect endpoints such as presence, signal, and graylog.
cookie Parameters
| sess{Unique ID} required | string Example: sess{Unique ID}=sess38b9de00=12345678-9abc-4f44-9aba-773c5a9d3465 The session cookie from the Presence service |
header Parameters
| x-adapt-host | string |
| x-adapt-handler | string |
| x-adapt-url | string |
Responses
Response samples
- 200
- 401
- 403
- 500
{- "session": {
- "token": "string",
- "user_info": {
- "auth_source": {
- "name": "string",
- "code": "string",
- "origin": "string"
}, - "subject": "string",
- "uid": "user@example.com",
- "name": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "toke_info": {
- "name": "string",
- "code": "string",
- "origin": "string"
}
}
}Logs user out of Authn
GET /logout
Logout will end a user's Authn session and expire their session cookie.
cookie Parameters
| sess{Unique ID} required | string Example: sess{Unique ID}=sess38b9de00=12345678-9abc-4f44-9aba-773c5a9d3465 The session cookie from the Presence service |
header Parameters
| x-adapt-host | string |
| x-adapt-handler | string |
| x-adapt-url | string |
Responses
Response samples
- 200
- 400
- 401
{- "status": 200
}