fix microsoft active directory config
This commit is contained in:
parent
7a76b783b1
commit
a042c202a0
|
@ -171,8 +171,8 @@ func InitOAuth() error {
|
|||
microsoftClientSecret = ""
|
||||
}
|
||||
microsoftActiveDirTenantID, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyMicrosoftActiveDirectoryTenantID)
|
||||
if err != nil || microsoftActiveDirTenantID == "" {
|
||||
microsoftActiveDirTenantID = "common"
|
||||
if err != nil {
|
||||
microsoftActiveDirTenantID = ""
|
||||
}
|
||||
if microsoftClientID != "" && microsoftClientSecret != "" && microsoftActiveDirTenantID != "" {
|
||||
p, err := oidc.NewProvider(ctx, fmt.Sprintf("https://login.microsoftonline.com/%s/v2.0", microsoftActiveDirTenantID))
|
||||
|
|
Loading…
Reference in New Issue
Block a user