feat: allow glob redirects (#7091)

fixes #5110
This commit is contained in:
Yordis Prieto
2023-12-28 04:25:18 -05:00
committed by GitHub
parent 3483ec470d
commit 9d5d1cf3ea
5 changed files with 74 additions and 12 deletions

View File

@@ -136,6 +136,20 @@ func (c *Client) IDTokenUserinfoClaimsAssertion() bool {
return c.client.IDTokenUserinfoAssertion
}
func (c *Client) RedirectURIGlobs() []string {
if c.DevMode() {
return c.RedirectURIs()
}
return nil
}
func (c *Client) PostLogoutRedirectURIGlobs() []string {
if c.DevMode() {
return c.PostLogoutRedirectURIs()
}
return nil
}
func accessTokenTypeToOIDC(tokenType domain.OIDCTokenType) op.AccessTokenType {
switch tokenType {
case domain.OIDCTokenTypeBearer: