Skip to content

Commit

Permalink
fix vaas_client_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ata-no-one committed Feb 28, 2024
1 parent 42b2924 commit 8ac348e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion golang/vaas/pkg/authenticator/authenticator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ func Test_resourceOwnerPasswordGrantAuthenticator_GetToken(t *testing.T) {
log.Printf("failed to load environment - %v", err)
}

clientID := "vaas-customer"
clientID, exists := os.LookupEnv("VAAS_CLIENT_ID")
if !exists {
log.Fatal("no username set")
}
username, exists := os.LookupEnv("VAAS_USER_NAME")
if !exists {
log.Fatal("no username set")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class Authentication {
public static void main(String[] args) throws Exception {
var clientId = System.getenv("CLIENT_ID");
var clientSecret = System.getenv("CLIENT_SECRET");
var vaasclientId = System.getenv("VAAS_CLIENT_ID");
var userName = System.getenv("VAAS_USER_NAME");
var password = System.getenv("VAAS_PASSWORD");
var tokenUrl = System.getenv("TOKEN_URL");
Expand All @@ -18,7 +19,7 @@ public static void main(String[] args) throws Exception {

// If you got a username and password from us, you can use the ResourceOwnerPasswordAuthenticator like this
var authenticator = new ResourceOwnerPasswordGrantAuthenticator(
"vaas-customer",
vaasclientId,
userName,
password,
new URI(tokenUrl)
Expand Down

0 comments on commit 8ac348e

Please sign in to comment.