Rename auth redirect variable
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user