Skip to content

Commit

Permalink
Merge pull request #80 from cho4036/minor_fix
Browse files Browse the repository at this point in the history
minor fix: set tls skip verification between keycloak and tks-api
  • Loading branch information
cho4036 authored Jun 16, 2023
2 parents fa30c53 + 8fd4438 commit 838b25f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/usecase/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package usecase

import (
"crypto/rand"
"crypto/tls"
"encoding/base64"
"fmt"
"io"
Expand Down Expand Up @@ -358,7 +359,11 @@ func makingCookie(organizationId, userName, password string) ([]*http.Cookie, er
}

authCodeUrl := oauth2Config.AuthCodeURL(stateCode, oauth2.AccessTypeOnline)
client := &http.Client{}
// skip tls check
transport := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: transport}
req, err := http.NewRequest("GET", authCodeUrl, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit 838b25f

Please sign in to comment.