-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use authenticate endpoint for x
Improves the "Log in with X" experience by not asking the user to re-authenticate every time.
- Loading branch information
Showing
5 changed files
with
37 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local claims = std.extVar('claims'); | ||
{ | ||
identity: { | ||
traits: { | ||
// Allowing unverified email addresses enables account | ||
// enumeration attacks, if the value is used for | ||
// verification or as a password login identifier. | ||
// | ||
// If connecting only to your organization (one tenant), claims.email is safe to use | ||
// if you haven't actively disabled e-mail verification during sign-up. | ||
// | ||
// The email might be empty if the account isn't linked to an email address. | ||
// For a human readable identifier, consider using the "preferred_username" claim. | ||
[if 'email' in claims then 'email' else null]: claims.email, | ||
}, | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -22,6 +22,10 @@ | |
}, | ||
"passkey": { | ||
"display_name": true | ||
}, | ||
"code": { | ||
"identifier": true, | ||
"via": "email" | ||
} | ||
} | ||
} | ||
|