Mod Login Keycloak API
Not Implemented, Deprecated
Will be removed in a future releases
Please use /token/sign
instead. Returns a signed, non-expiring legacy access token.
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
required | object The payload of the token signing request | ||||
|
{- "payload": {
- "sub": "string"
}
}
{- "token": "string"
}
Not Implemented
Returns a signed, expiring refresh token. This is a legacy endpoint and should not be called by new code and will soon be fully depreciated.
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
userId required | string <uuid> The user id of the request |
sub required | string The subject (user id) of the request |
{- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "sub": "string"
}
{- "token": "string"
}
Not Implemented
Returns a signed, expiring access token and refresh token. Also returns the expiration of each token in the body of the response. The access token time to live is 10 minutes and the refresh token is one week.
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
required | object The payload of the token signing request | ||||
|
{- "payload": {
- "sub": "string"
}
}
{- "token": "string",
- "refreshToken": "string",
- "accessToken": "string"
}
Not Implemented
Returns a new refresh token and a new access token. Also returns the expiration of each token in the body of the response. Time to live is 10 minutes for the access token and one week for the refresh token.
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
refreshToken required | string The JWE refresh token |
{- "refreshToken": "string"
}
{- "token": "string",
- "refreshToken": "string",
- "accessToken": "string"
}
Not Implemented
Invalidate a single token
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
refreshToken required | string The JWE refresh token |
{- "refreshToken": "string"
}
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Not Implemented
Invalidate all tokens for a user
X-Okapi-Tenant required | string Okapi Tenant |
X-Okapi-Url required | string Okapi URL |
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Get a new login token
userAgent | string Used to identify the Operating System and Browser of the web-server |
forwardedFor | string -< HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer |
username | string Username in the system, case insensitive |
userId | string Unique user id |
password required | string User password |
{- "username": "string",
- "userId": "string",
- "password": "string"
}
{- "okapiToken": "string",
- "refreshToken": "string"
}
Get an expiring refresh and access token
userAgent | string Used to identify the Operating System and Browser of the web-server |
forwardedFor | string -< HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer |
username | string Username in the system, case insensitive |
userId | string Unique user id |
password required | string User password |
{- "username": "string",
- "userId": "string",
- "password": "string"
}
{- "accessTokenExpiration": "string",
- "refreshTokenExpiration": "string"
}
Logs the user out on their current device
folioRefreshToken | string Refresh token cookie |
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Get a new login token from the authorization code
code required | string temporary authentication code |
redirect-uri required | string initial uri that was used as redirect uri for getting authentication code |
userAgent | string Used to identify the Operating System and Browser of the web-server |
forwardedFor | string -< HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer |
{- "accessTokenExpiration": "string",
- "refreshTokenExpiration": "string"
}
Self-update existing credentials.
userAgent | string Used to identify the Operating System and Browser of the web-server |
forwardedFor | string -< HTTP header field is a common method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer |
username required | string username |
userId | string Unique user id |
password required | string The current password of the user who will be replaced by the new one |
newPassword required | string New user password |
{- "username": "string",
- "userId": "string",
- "password": "string",
- "newPassword": "string"
}
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Add a new login to the system.
username | string Username in the system, case insensitive |
userId | string Unique user id |
password required | string User password |
{- "username": "string",
- "userId": "string",
- "password": "string"
}
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Delete credentials for user
userId required | string User identifier |
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}
Validate password for repeatability
password required | string Password |
userId required | string User Id |
{- "password": "string",
- "userId": "string"
}
{- "result": "string"
}
Resets password for user in record and deletes action record
passwordResetActionId required | string Action id for reset password |
newPassword required | string New password for update |
{- "passwordResetActionId": "string",
- "newPassword": "string"
}
{- "isNewPassword": true
}
Saves password reset action to storage
id required | string ID of the password reset action received in the API request |
userId required | string User ID to register password reset action |
expirationTime required | string <date-time> password expiration time |
{- "id": "string",
- "userId": "string",
- "expirationTime": "2019-08-24T14:15:22Z"
}
{- "passwordExists": true
}
Returns a list of events retrieved from storage
length | integer >= 1 Default: 10 Example: length=10 The maximum number of results to return. |
start | integer >= 1 Default: 1 The starting index in a list of results (starts at one). |
query | string Example: query=10 A query string to filter users based on matching criteria in fields. |
{- "loggingEvent": [
- {
- "id": "string",
- "eventType": "PASSWORD_RESET",
- "tenant": "string",
- "userId": "string",
- "ip": "string",
- "browserInformation": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "metadata": {
- "createdDate": "string",
- "createdByUserId": "string",
- "createdByUsername": "string",
- "updatedDate": "string",
- "updatedByUserId": "string",
- "updatedByUsername": "string"
}
}
], - "totalRecords": 0
}
Saves received event into the storage
id | string The system assigned unique ID of the instance record; UUID | ||||||||||||
eventType required | string (Log Event Type Schema) Enum: "PASSWORD_RESET" "PASSWORD_CREATE" "PASSWORD_CHANGE" "SUCCESSFUL_LOGIN_ATTEMPT" "FAILED_LOGIN_ATTEMPT" "USER_BLOCK" Log event type | ||||||||||||
tenant required | string The tenant for which the event occurred | ||||||||||||
userId required | string User ID for which the event is registered. | ||||||||||||
ip | string Client IP address of registered user Okapi | ||||||||||||
browserInformation | string Client's browser information obtained from User-Agent http header | ||||||||||||
timestamp | string <date-time> Event registration time | ||||||||||||
object (Metadata Schema) Record metadata | |||||||||||||
|
{- "id": "string",
- "eventType": "PASSWORD_RESET",
- "tenant": "string",
- "userId": "string",
- "ip": "string",
- "browserInformation": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "metadata": {
- "createdDate": "string",
- "createdByUserId": "string",
- "createdByUsername": "string",
- "updatedDate": "string",
- "updatedByUserId": "string",
- "updatedByUsername": "string"
}
}
{- "message": "string"
}
Saves received event into the storage
eventId required | string Event Identifier |
{- "errors": [
- {
- "message": "string",
- "type": "string",
- "code": "unknown_error",
- "parameters": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "total_records": 0
}