-
-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers/oauth2: add initial JWE support (#11344)
* providers/oauth2: add initial JWE support Signed-off-by: Jens Langhammer <[email protected]> * re-migrate, only set id_token_encryption_* when encryption key is set Signed-off-by: Jens Langhammer <[email protected]> * add docs Signed-off-by: Jens Langhammer <[email protected]> * add jwks test with encryption Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
- Loading branch information
Showing
18 changed files
with
329 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"authn", | ||
"entra", | ||
"goauthentik", | ||
"jwe", | ||
"jwks", | ||
"kubernetes", | ||
"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
42 changes: 42 additions & 0 deletions
42
authentik/providers/oauth2/migrations/0021_oauth2provider_encryption_key_and_more.py
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,42 @@ | ||
# Generated by Django 5.0.9 on 2024-10-16 14:53 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("authentik_crypto", "0004_alter_certificatekeypair_name"), | ||
( | ||
"authentik_providers_oauth2", | ||
"0020_remove_accesstoken_authentik_p_token_4bc870_idx_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="oauth2provider", | ||
name="encryption_key", | ||
field=models.ForeignKey( | ||
help_text="Key used to encrypt the tokens. When set, tokens will be encrypted and returned as JWEs.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="oauth2provider_encryption_key_set", | ||
to="authentik_crypto.certificatekeypair", | ||
verbose_name="Encryption Key", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="oauth2provider", | ||
name="signing_key", | ||
field=models.ForeignKey( | ||
help_text="Key used to sign the tokens.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="oauth2provider_signing_key_set", | ||
to="authentik_crypto.certificatekeypair", | ||
verbose_name="Signing Key", | ||
), | ||
), | ||
] |
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
Oops, something went wrong.