Remove unnecessary oauth method
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -273,7 +273,6 @@ func initOauthProviders(p *types.Playground) {
|
||||
if p.DockerClientID != "" && p.DockerClientSecret != "" {
|
||||
|
||||
endpoint := getDockerEndpoint(p)
|
||||
oauth2.RegisterBrokenAuthHeaderProvider(fmt.Sprintf(".%s", endpoint))
|
||||
conf := &oauth2.Config{
|
||||
ClientID: p.DockerClientID,
|
||||
ClientSecret: p.DockerClientSecret,
|
||||
|
||||
@@ -208,8 +208,6 @@ func LoginCallback(rw http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Printf("Lalalala %#v\n", user)
|
||||
|
||||
cookieData := CookieID{Id: user.Id, UserName: user.Name, UserAvatar: user.Avatar, ProviderId: user.ProviderUserId}
|
||||
|
||||
host := "localhost"
|
||||
|
||||
Reference in New Issue
Block a user