-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
205 additions
and
0 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
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
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,26 @@ | ||
component { | ||
|
||
/** | ||
* Try's to get a jwt token from the authorization header or the custom header | ||
* defined in the configuration or passed in by you. If it is a valid token and it decodes we will then | ||
* continue to validate the subject it represents. Once those are satisfied, then it will | ||
* store it in the `prc` as `prc.jwt_token` and the payload as `prc.jwt_payload`. | ||
* | ||
* @token The token to parse and validate, if not passed we call the discoverToken() method for you. | ||
* @storeInContext By default, the token will be stored in the request context | ||
* @authenticate By default, the token will be authenticated, you can disable it and do manual authentication. | ||
* | ||
* @throws TokenExpiredException If the token has expired or no longer in the storage (invalidated) | ||
* @throws TokenInvalidException If the token doesn't verify decoding | ||
* @throws TokenNotFoundException If the token cannot be found in the headers | ||
* | ||
* @returns The payload for convenience | ||
*/ | ||
struct function parseToken( | ||
string token = discoverToken(), | ||
boolean storeInContext = true, | ||
boolean authenticate = true | ||
) { | ||
} | ||
|
||
} |
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,5 @@ | ||
[ | ||
{ | ||
"alignment.doc_comments": true | ||
} | ||
] |
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 @@ | ||
// | ||
component { | ||
|
||
/** | ||
* Try's to get a jwt token from the authorization header or the custom header | ||
* defined in the configuration or passed in by you. If it is a valid token and it decodes we will then | ||
* continue to validate the subject it represents. Once those are satisfied, then it will | ||
* store it in the `prc` as `prc.jwt_token` and the payload as `prc.jwt_payload`. | ||
* | ||
* @token The token to parse and validate, if not passed we call the discoverToken() method for you. | ||
* @storeInContext By default, the token will be stored in the request context | ||
* @authenticate By default, the token will be authenticated, you can disable it and do manual authentication. | ||
* | ||
* @throws TokenExpiredException If the token has expired or no longer in the storage (invalidated) | ||
* @throws TokenInvalidException If the token doesn't verify decoding | ||
* @throws TokenNotFoundException If the token cannot be found in the headers | ||
* | ||
* @returns The payload for convenience | ||
*/ | ||
struct function parseToken( | ||
string token = discoverToken(), | ||
boolean storeInContext = true, | ||
boolean authenticate = true | ||
) { | ||
} | ||
|
||
} |
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