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 (
|
var (
|
||||||
oidcClientID = ""
|
oidcClientID = ""
|
||||||
oidcSecret = ""
|
oidcSecret = ""
|
||||||
oidcRedirectURL = "https://srs.nemunai.re"
|
oidcRedirectURL = "https://srs.nemunai.re"
|
||||||
oauth2Config oauth2.Config
|
oauth2Config oauth2.Config
|
||||||
oidcVerifier *oidc.IDTokenVerifier
|
oidcVerifier *oidc.IDTokenVerifier
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -33,7 +33,7 @@ func init() {
|
|||||||
|
|
||||||
func initializeOIDC() {
|
func initializeOIDC() {
|
||||||
if oidcClientID != "" && oidcSecret != "" {
|
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 {
|
if err != nil {
|
||||||
log.Fatal("Unable to setup oidc:", err)
|
log.Fatal("Unable to setup oidc:", err)
|
||||||
}
|
}
|
||||||
@ -51,7 +51,7 @@ func initializeOIDC() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
oidcConfig := oidc.Config{
|
oidcConfig := oidc.Config{
|
||||||
ClientID: oidcClientID,
|
ClientID: oidcClientID,
|
||||||
}
|
}
|
||||||
oidcVerifier = provider.Verifier(&oidcConfig)
|
oidcVerifier = provider.Verifier(&oidcConfig)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user