forked from goauthentik/authentik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers/oauth2: OpenID conformance (goauthentik#4758)
* don't open inspector by default when debug is enabled Signed-off-by: Jens Langhammer <[email protected]> * encode error in fragment when using hybrid grant_type Signed-off-by: Jens Langhammer <[email protected]> * require nonce for all response_types that get an id_token from the authorization endpoint Signed-off-by: Jens Langhammer <[email protected]> * don't set empty family_name Signed-off-by: Jens Langhammer <[email protected]> * only set at_hash when response has token Signed-off-by: Jens Langhammer <[email protected]> * cleaner way to get login time Signed-off-by: Jens Langhammer <[email protected]> * remove authentication requirement from authentication flow Signed-off-by: Jens Langhammer <[email protected]> * use wrapper Signed-off-by: Jens Langhammer <[email protected]> * fix auth_time not being handled correctly Signed-off-by: Jens Langhammer <[email protected]> * minor cleanup Signed-off-by: Jens Langhammer <[email protected]> * add test files Signed-off-by: Jens Langhammer <[email protected]> * fix tests Signed-off-by: Jens Langhammer <[email protected]> * remove USER_LOGIN_AUTHENTICATED Signed-off-by: Jens Langhammer <[email protected]> * rework prompt=login handling Signed-off-by: Jens Langhammer <[email protected]> * also set last login uid for max_age check to prevent double login when max_age and prompt=login is set Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
- Loading branch information
Showing
22 changed files
with
255 additions
and
65 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
40 changes: 40 additions & 0 deletions
40
...ders/oauth2/migrations/0015_accesstoken_auth_time_authorizationcode_auth_time_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,40 @@ | ||
# Generated by Django 4.1.7 on 2023-02-22 22:23 | ||
|
||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("authentik_providers_oauth2", "0014_alter_refreshtoken_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="accesstoken", | ||
name="auth_time", | ||
field=models.DateTimeField( | ||
default=django.utils.timezone.now, | ||
verbose_name="Authentication time", | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="authorizationcode", | ||
name="auth_time", | ||
field=models.DateTimeField( | ||
default=django.utils.timezone.now, | ||
verbose_name="Authentication time", | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="refreshtoken", | ||
name="auth_time", | ||
field=models.DateTimeField( | ||
default=django.utils.timezone.now, | ||
verbose_name="Authentication time", | ||
), | ||
preserve_default=False, | ||
), | ||
] |
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.