Rename auth redirect variable

This commit is contained in:
Marcos Lilljedahl
2020-11-11 23:30:28 -03:00
parent 4b4b767e46
commit e11087356e
2 changed files with 3 additions and 3 deletions

View File

@@ -73,8 +73,8 @@ func Login(rw http.ResponseWriter, req *http.Request) {
return return
} }
if playground.AuthRedirectURL != "" { if playground.AuthRedirectBase != "" {
provider.RedirectURL = playground.AuthRedirectURL provider.RedirectURL = fmt.Sprintf("%s/oauth/providers/%s/callback", playground.AuthRedirectBase, providerName)
} else { } else {
scheme := "http" scheme := "http"
if req.TLS != nil { if req.TLS != nil {

View File

@@ -88,7 +88,7 @@ type Playground struct {
GoogleClientSecret string `json:"google_client_secret" bson:"google_client_secret"` GoogleClientSecret string `json:"google_client_secret" bson:"google_client_secret"`
DockerClientID string `json:"docker_client_id" bson:"docker_client_id"` DockerClientID string `json:"docker_client_id" bson:"docker_client_id"`
DockerClientSecret string `json:"docker_client_secret" bson:"docker_client_secret"` DockerClientSecret string `json:"docker_client_secret" bson:"docker_client_secret"`
AuthRedirectURL string `json:"auth_redirect_url" bson:"auth_redirect_url"` AuthRedirectBase string `json:"auth_redirect_base" bson:"auth_redirect_base"`
DockerHost string `json:"docker_host" bson:"docker_host"` DockerHost string `json:"docker_host" bson:"docker_host"`
MaxInstances int `json:"max_instances" bson:"max_instances"` MaxInstances int `json:"max_instances" bson:"max_instances"`
Privileged bool `json:"privileged" bson:"privileged"` Privileged bool `json:"privileged" bson:"privileged"`