-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add PKCE Verifier for OIDC (#2314)
* feat: add PKCE verifier for OIDC * Update CHANGELOG.md
- Loading branch information
Showing
7 changed files
with
187 additions
and
15 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 |
---|---|---|
|
@@ -364,6 +364,18 @@ unix_socket_permission: "0770" | |
# allowed_users: | ||
# - [email protected] | ||
# | ||
# # Optional: PKCE (Proof Key for Code Exchange) configuration | ||
# # PKCE adds an additional layer of security to the OAuth 2.0 authorization code flow | ||
# # by preventing authorization code interception attacks | ||
# # See https://datatracker.ietf.org/doc/html/rfc7636 | ||
# pkce: | ||
# # Enable or disable PKCE support (default: false) | ||
# enabled: false | ||
# # PKCE method to use: | ||
# # - plain: Use plain code verifier | ||
# # - S256: Use SHA256 hashed code verifier (default, recommended) | ||
# method: S256 | ||
# | ||
# # Map legacy users from pre-0.24.0 versions of headscale to the new OIDC users | ||
# # by taking the username from the legacy user and matching it with the username | ||
# # provided by the OIDC. This is useful when migrating from legacy users to OIDC | ||
|
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 |
---|---|---|
|
@@ -45,6 +45,18 @@ oidc: | |
allowed_users: | ||
- [email protected] | ||
|
||
# Optional: PKCE (Proof Key for Code Exchange) configuration | ||
# PKCE adds an additional layer of security to the OAuth 2.0 authorization code flow | ||
# by preventing authorization code interception attacks | ||
# See https://datatracker.ietf.org/doc/html/rfc7636 | ||
pkce: | ||
# Enable or disable PKCE support (default: false) | ||
enabled: false | ||
# PKCE method to use: | ||
# - plain: Use plain code verifier | ||
# - S256: Use SHA256 hashed code verifier (default, recommended) | ||
method: S256 | ||
|
||
# If `strip_email_domain` is set to `true`, the domain part of the username email address will be removed. | ||
# This will transform `[email protected]` to the user `first-name.last-name` | ||
# If `strip_email_domain` is set to `false` the domain part will NOT be removed resulting to the following | ||
|
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