From e6dfb2aa1d2fa11f39ec015c47ac366151eb1af8 Mon Sep 17 00:00:00 2001 From: Didier 'OdyX' Raboud Date: Wed, 28 Aug 2024 15:29:01 +0200 Subject: [PATCH] [IMP] auth_oidc: Add a groups_field --- auth_oidc/models/auth_oauth_provider.py | 1 + auth_oidc/views/auth_oauth_provider.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/auth_oidc/models/auth_oauth_provider.py b/auth_oidc/models/auth_oauth_provider.py index ac498a7cdb..2e2275e320 100644 --- a/auth_oidc/models/auth_oauth_provider.py +++ b/auth_oidc/models/auth_oauth_provider.py @@ -46,6 +46,7 @@ class AuthOauthProvider(models.Model): string="Token URL", help="Required for OpenID Connect authorization code flow." ) jwks_uri = fields.Char(string="JWKS URL", help="Required for OpenID Connect.") + groups_field = fields.Char(help="Token field that stores the groups' mapping") @tools.ormcache("self.jwks_uri", "kid") def _get_keys(self, kid): diff --git a/auth_oidc/views/auth_oauth_provider.xml b/auth_oidc/views/auth_oauth_provider.xml index 90c931b417..31a5c12051 100644 --- a/auth_oidc/views/auth_oauth_provider.xml +++ b/auth_oidc/views/auth_oauth_provider.xml @@ -17,6 +17,7 @@ +