-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from curveball/allow-tokens-to-not-expire
Allow one-time-tokens to not expire during validation.
- Loading branch information
Showing
5 changed files
with
54 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://curveballjs.org/schemas/a12nserver/one-time-token-exchange.json", | ||
"type": "object", | ||
"description": "Request body of the exchange one-time-token endpoint.", | ||
"required": ["token","client_id"], | ||
"additionalProperties": false, | ||
|
||
"properties": { | ||
"token": { | ||
"type": "string", | ||
"description": "The token previously obtained with the 'generate one-time-token' endpoint." | ||
}, | ||
"client_id": { | ||
"type": "string", | ||
"description": "The OAuth2 client_id. This client will be associated with the generated token." | ||
}, | ||
"activateUser": { | ||
"type": "boolean", | ||
"description": "Activate the user if the token was valid." | ||
}, | ||
"dontExpire": { | ||
"type": "boolean", | ||
"description": "Don't expire the one-time-token even if it was correct." | ||
} | ||
} | ||
} |
File renamed without changes.
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