Replies: 5 comments 3 replies
-
Hi @jannawro! 👋🏼 Thanks for reaching out. It's cool to see, that you are interested in using the methods in your project. |
Beta Was this translation helpful? Give feedback.
-
Thank you for being so considerate :) |
Beta Was this translation helpful? Give feedback.
-
I fiddled a bit around with the methods and moved the SSO methods to pkg. Let me know how it works 👍🏼 |
Beta Was this translation helpful? Give feedback.
-
Overall integrating with your api wasn't too hard. Though I am facing an issue(a bug possibly). My integration: oidcApi, ssoApi := InitClients(c.Region)
clientInformation, _ := ProcessClientInformation(oidcApi, startUrl)
rci := &sso.GetRoleCredentialsInput{
AccountId: &c.AccountId,
RoleName: &roleName,
AccessToken: &clientInformation.AccessToken,
}
roleCredentials, err := ssoApi.GetRoleCredentials(rci) My sso doesn't seem to get the right grant: Could it be due to the fact that my org uses okta in addition to regular aws sso? |
Beta Was this translation helpful? Give feedback.
-
The SSO API is exposed and merged into main. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suggestion
Move the parts of the API responsible for the access token generation/putting it in .aws/sso/cache into packge/{some-name-for-package}.
Why?
I think it would be very useful to have an easy to import external dependency for the aws sso proccess. I myself am currently working on embeding this in a tool of mine to get rid of a call to aws cli with os.Exec. Currently struggling due to the abundance of pointers in aws-go-sdk which I have trouble to get my head around.
Beta Was this translation helpful? Give feedback.
All reactions