Remove unnecessary oauth method

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2022-07-13 18:26:52 -03:00
parent a5a23bf2d9
commit 7188d83f86
3 changed files with 13 additions and 13 deletions

View File

@@ -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,

View File

@@ -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"