Retrieve an ID token for the given user, destined for the given identity consumer. This is part of our OpenID Connect 1.0 provider implementation.
For example, the forums authentication workflow goes like this:
GET /api/v1/auth/oidc/authenticate HTTP/1.1
?aud=https://community.theendlessmission.com
&redirectUrl=https://community.theendlessmission.com/auth/oidc/callback
&nonce=123456789
----------------------------------------
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
ETag: ...
{
"idToken": "eyJ...uwQ",
"redirectUrl": "https://community.theendlessmission.com/auth/oidc/callback",
"expiresIn": 600
}Authentication is required for this method, but any user is permitted.
NONE
| Name | Description | Value |
|---|---|---|
| aud | the identity consumer that we are logging into; included to validate the client against accepted consumers | string |
| redirectUrl | the return target; included to validate the return against accepted consumers | string |
| nonce | a nonce value to include in the resulting token optional | string |
NONE
Successful responses are code 200 with data in the response body. Error responses are standard.
| Name | Description | Value |
|---|---|---|
| idToken | the generated ID token to forward to the consumer | string |
| redirectUrl | the valid redirect URL | string |
| expiresIn | the amount of time until the given ID token expires, in seconds | number |