Registry / auth / aws-aws-sdk-go-v2-service-ssooidc

aws-aws-sdk-go-v2-service-ssooidc

JSON →
library1.36.6gogounverified

Package ssooidc provides the API client for AWS SSO OIDC, enabling device authorization and token management.

go get github.com/aws/aws-sdk-go-v2/service/ssooidc
INSTALL
IMPORT
SIG · AWS-AWS-SDK-GO-V2-
A
aws-aws-sdk-go-v2-service-ssooidc
authgov1.36.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ssooidc
github.com/aws/aws-sdk-go-v2/service/ssooidc

Start device authorization with AWS SSO OIDC

package main import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/ssooidc" ) func main() { client := ssooidc.NewFromConfig(cfg) output, err := client.StartDeviceAuthorization(context.Background(), &ssooidc.StartDeviceAuthorizationInput{ ClientId: aws.String("client-id"), ClientSecret: aws.String("client-secret"), StartUrl: aws.String("https://my-sso-start-url"), }) if err != nil { panic(err) } fmt.Println(*output.DeviceCode) }
Debug
Known issues
gotchaRequires AWS SDK configuration (cfg) to be properly initialized.
fix
Use config.LoadDefaultConfig() to create a valid config.
affects: all
Upgrade
Version history
1.36.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
aws-aws-sdk-go-v2-service-ssooidc — go get aws-aws-sdk-go-v2-service-ssooidc · libregistry