Validate authentik issuer url (#1723)

* Validate authentik issuer url

* test issuer

* adjust test times on windows
This commit is contained in:
Maycon Santos
2024-03-18 10:12:46 +01:00
committed by GitHub
parent abd57d1191
commit 9b0fe2c8e5
3 changed files with 39 additions and 9 deletions

View File

@@ -76,6 +76,10 @@ func NewAuthentikManager(config AuthentikClientConfig,
return nil, fmt.Errorf("authentik IdP configuration is incomplete, TokenEndpoint is missing")
}
if config.Issuer == "" {
return nil, fmt.Errorf("authentik IdP configuration is incomplete, Issuer is missing")
}
if config.GrantType == "" {
return nil, fmt.Errorf("authentik IdP configuration is incomplete, GrantType is missing")
}