OIDC CRI: change provider location
This commit is contained in:
parent
6aeca0226b
commit
3b6683cb55
12
auth_oidc.go
12
auth_oidc.go
@ -15,11 +15,11 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
oidcClientID = ""
|
||||
oidcSecret = ""
|
||||
oidcClientID = ""
|
||||
oidcSecret = ""
|
||||
oidcRedirectURL = "https://srs.nemunai.re"
|
||||
oauth2Config oauth2.Config
|
||||
oidcVerifier *oidc.IDTokenVerifier
|
||||
oauth2Config oauth2.Config
|
||||
oidcVerifier *oidc.IDTokenVerifier
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -33,7 +33,7 @@ func init() {
|
||||
|
||||
func initializeOIDC() {
|
||||
if oidcClientID != "" && oidcSecret != "" {
|
||||
provider, err := oidc.NewProvider(context.Background(), "https://cri.epita.fr/oidc")
|
||||
provider, err := oidc.NewProvider(context.Background(), "https://cri.epita.fr")
|
||||
if err != nil {
|
||||
log.Fatal("Unable to setup oidc:", err)
|
||||
}
|
||||
@ -51,7 +51,7 @@ func initializeOIDC() {
|
||||
}
|
||||
|
||||
oidcConfig := oidc.Config{
|
||||
ClientID: oidcClientID,
|
||||
ClientID: oidcClientID,
|
||||
}
|
||||
oidcVerifier = provider.Verifier(&oidcConfig)
|
||||
}
|
||||
|
Reference in New Issue
Block a user