diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-01-07 12:39:52 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-07 12:39:52 +1100 |
| commit | aee9d28f7cf77643359fb4dae749bce3c1ff00de (patch) | |
| tree | 2766714aff525ab8c64e57b89dd5dc501c7c7050 /internal/handlers/handler_oidc_authorization_consent.go | |
| parent | 96c81a6561c431ab2398f3167547156091732cbf (diff) | |
fix(oidc): pre-config audience not matched (#6513)
This fixes an issue in master which prevented the audience from matching in pre-configured consent sessions.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_oidc_authorization_consent.go')
| -rw-r--r-- | internal/handlers/handler_oidc_authorization_consent.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/handlers/handler_oidc_authorization_consent.go b/internal/handlers/handler_oidc_authorization_consent.go index 8dc635248..f6ae3738c 100644 --- a/internal/handlers/handler_oidc_authorization_consent.go +++ b/internal/handlers/handler_oidc_authorization_consent.go @@ -16,7 +16,6 @@ import ( "github.com/authelia/authelia/v4/internal/model" "github.com/authelia/authelia/v4/internal/oidc" "github.com/authelia/authelia/v4/internal/session" - "github.com/authelia/authelia/v4/internal/utils" ) func handleOIDCAuthorizationConsent(ctx *middlewares.AutheliaCtx, issuer *url.URL, client oidc.Client, @@ -264,15 +263,3 @@ func verifyOIDCUserAuthorizedForConsent(ctx *middlewares.AutheliaCtx, client oid return nil } - -func getOIDCExpectedScopesAndAudienceFromRequest(requester fosite.Requester) (scopes, audience []string) { - return getOIDCExpectedScopesAndAudience(requester.GetClient().GetID(), requester.GetRequestedScopes(), requester.GetRequestedAudience()) -} - -func getOIDCExpectedScopesAndAudience(clientID string, scopes, audience []string) (expectedScopes, expectedAudience []string) { - if !utils.IsStringInSlice(clientID, audience) { - audience = append(audience, clientID) - } - - return scopes, audience -} |
