Skip to content

Commit

Permalink
chore: fix credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitienda committed Apr 29, 2024
1 parent 33968ea commit 449395c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bdd-go/pkg/api/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import (
"fmt"
"io"
"net/http"
"os"
"strings"
)

func userLogin(user string) (string, error) {

url := "https://tsoobame.auth0.com/oauth/token"
url := os.Getenv("AUTH0_ISSUER_BASE_URL") + "/oauth/token"

payload := strings.NewReader("{\"client_id\":\"59c0gp7c5M9nNYslsyoH2j4eaVp30lKh\",\"client_secret\":\"CBkF2m7MwaaNwTccq_0EkwUchMwBnwbijM91zEk_0mrxKGaKv7AYm78Hty7gLd8h\",\"audience\":\"https://kadai.com/api\",\"grant_type\":\"client_credentials\"}")
payload := strings.NewReader("{\"client_id\":\"" + os.Getenv("AUTH0_KADAI_BACKEND_CLIENT_ID") + "\",\"client_secret\":\"" + os.Getenv("AUTH0_KADAI_BACKEND_CLIENT_SECRET") + "\",\"audience\":\"" + os.Getenv("AUTH0_AUDIENCE") + "\",\"grant_type\":\"client_credentials\"}")

req, _ := http.NewRequest("POST", url, payload)

Expand Down

0 comments on commit 449395c

Please sign in to comment.