Skip to content

How to use identityPoolId to golang sdk authentication #2007

Answered by aajtodd
simman asked this question in Q&A
Discussion options

You must be logged in to vote

There is no convenience baked into Go v1/v2 for retrieving credentials from Cognito. You could use the cognitoidentity service client to implement a custom credential provider though and get the same behavior. You would need to look at the JS implementation and then map that to the Cognito/Go API's (the main APIs appear to be GetId and GetCredentialsForIdentity).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants