-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLATFORM-1248]: Look into adding a "sub" field to the access token (#72
- Loading branch information
1 parent
ffe847e
commit afff4be
Showing
5 changed files
with
40 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
use chrono::{DateTime, Utc}; | ||
|
||
const ISSUER: &str = "https://prima.localauth0.com/"; | ||
const USER_INFO_SUBJECT: &str = "google-apps|[email protected]"; | ||
|
||
const SUBJECT: &str = "google-apps|[email protected]"; | ||
const USER_INFO_SUBJECT: &str = SUBJECT; | ||
const USER_INFO_NAME: &str = "Local"; | ||
const USER_INFO_NICKNAME: &str = "locie.auth0"; | ||
const USER_INFO_GIVEN_NAME: &str = "Locie"; | ||
|
@@ -21,6 +23,9 @@ pub fn issuer() -> String { | |
ISSUER.to_string() | ||
} | ||
|
||
pub fn subject() -> String { | ||
SUBJECT.to_string() | ||
} | ||
pub fn user_info_subject() -> String { | ||
USER_INFO_SUBJECT.to_string() | ||
} | ||
|
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