Set redirect url from env vars
This commit is contained in:
parent
b4ba7f9736
commit
36877bd14b
@ -17,7 +17,8 @@ func NewAuth(sessionStore *sessions.Store) {
|
||||
oidcId := os.Getenv("OIDC_ID")
|
||||
oidcSec := os.Getenv("OIDC_SECRET")
|
||||
oidcDiscUrl := os.Getenv("OIDC_DISC_URL")
|
||||
oidcRedirectUrl := "http://localhost:3003/auth/openid-connect/callback"
|
||||
domain := os.Getenv("OIDC_REDIR_DOMAIN")
|
||||
oidcRedirectUrl := domain + "/auth/openid-connect/callback"
|
||||
|
||||
openidConnect, err := openidConnect.New(oidcId, oidcSec, oidcRedirectUrl, oidcDiscUrl)
|
||||
if openidConnect == nil || err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user