Skip to content

Commit

Permalink
[IMP] auth_oidc: Add a groups_field
Browse files Browse the repository at this point in the history
  • Loading branch information
OdyX committed Aug 28, 2024
1 parent 838cf65 commit e6dfb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions auth_oidc/models/auth_oauth_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions auth_oidc/views/auth_oauth_provider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</field>
<field name="validation_endpoint" position="after">
<field name="token_endpoint" />
<field name="groups_field" />
<field name="jwks_uri" />
</field>
</field>
Expand Down

0 comments on commit e6dfb2a

Please sign in to comment.