-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-1027: added an endpoint that can be used to get authentication t…
…okens from Keycloak
- Loading branch information
Showing
6 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
(ns terrain.routes.schemas.token | ||
(:use [common-swagger-api.schema :only [describe]] | ||
[schema.core :only [defschema]])) | ||
[schema.core :only [defschema optional-key]])) | ||
|
||
(defschema AccessTokenResponse | ||
{:access_token (describe String "The access token") | ||
:expires_in (describe String "The lifetime of the token in seconds")}) | ||
{:access_token | ||
(describe String "The access token") | ||
|
||
:expires_in | ||
(describe Integer "The lifetime of the token in seconds") | ||
|
||
(optional-key :refresh_expires_in) | ||
(describe Integer "The lifetime of the refresh token in seconds") | ||
|
||
(optional-key :refresh_token) | ||
(describe String "The refresh token") | ||
|
||
(optional-key :token_type) | ||
(describe String "The type of the access token") | ||
|
||
(optional-key :not-before-policy) | ||
(describe Integer "The number of seconds before the token can be used") | ||
|
||
(optional-key :session_state) | ||
(describe String "A string representing the login state of the user") | ||
|
||
(optional-key :scope) | ||
(describe String "The scopes granted to the access token")}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters