mirror of
https://github.com/hanzokms/go-sdk.git
synced 2026-10-30 19:44:54 +00:00
- Module path: github.com/infisical/go-sdk -> github.com/hanzokms/go-sdk - Package name: infisical -> kms - Types: InfisicalClient -> Client, NewInfisicalClient -> NewClient - Default URL: app.infisical.com -> kms.hanzo.ai - Env vars: INFISICAL_ prefix -> KMS_ prefix - User agent: infisical-go-sdk -> hanzo-kms-go-sdk - Copyright: Hanzo AI Inc. - go build ./... passes clean
25 lines
430 B
Go
25 lines
430 B
Go
package test
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"testing"
|
|
|
|
kms "github.com/hanzokms/go-sdk"
|
|
)
|
|
|
|
func TestAWSAuthLogin(t *testing.T) {
|
|
|
|
client := kms.NewClient(context.Background(), kms.Config{
|
|
SiteUrl: "https://c61b724baab4.ngrok.app",
|
|
})
|
|
|
|
accessToken, err := client.Auth().AwsIamAuthLogin("e2cddb75-a0e0-4c89-bfc0-4d536599f725") // test ID
|
|
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
fmt.Println("Obtained access token: ", accessToken)
|
|
}
|