Authentication Data API
The Authentication Data API (version 1.2).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
Authentication
Authenticate user
POST /authenticate
This API is used to authenticate the user and to get a JWT that can be used to identify the user authenticated.
Request body: application/json
Username and password in the request body. Not required if you have authorized to the API using basic auth.
Schema: AuthenticationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | ||
password | string |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Authentication accepted | AuthenticationSuccessResponse |
400 | Bad Request | Error |
401 | Unauthorized | Error |
404 | Not Found | Error |
500 | Server Error | Error |
Retrieve an authentication context parameter
GET /context/{sessionKey}
This API is used to retrieve parameters set by the authentication framework to be accessed by the authentication endpoint. Parameters should be set by calling AuthenticationContext.addEndpointParam() to be eligible to query with this API. This can be used to retrieve sensitive parameters required for the authentication endpoint.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sessionKey | path | string | Yes | This represents the session data key that will uniquely identify the authentication context |
parameters | query | string | Comma-separated list of parameters to filter. If none provided all available parameters will be sent. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Parameters |
400 | Bad Request | Error |
401 | Unauthorized | Error |
404 | Not Found | Error |
500 | Server Error | Error |
Retrieve sensitive parameters used at the authentication flow
GET /data/{keyType}/{correlationKey}
Before using this API, see instructions above on how to configure this API in IS.
This API is used to retrieve sensitive parameters that can't be sent as query parameters during the authentication flow.
This call may not be idempotent if IS is configured to clear the data on retrieval to prevent multiple retrievals.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
keyType | path | string | Yes | The correlation key type. Either AuthRequestKey or OauthConsentKey. |
correlationKey | path | string | Yes | The correlation key. Either the value of sessionDataKey or sessionDataKeyConsent corresponding to the keyType above. |
parameters | query | string | Comma-separated list of parameters to filter. If none provided all available parameters will be returned. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Parameters |
400 | Bad Request | Error |
401 | Unauthorized | Error |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
AuthenticationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
username | string | ||
password | string |
Parameters
Type: object
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
properties | object |
Was this page helpful?