title: can i obtain credentials for aws account using sso at the command line without a browser
body: <p>I am currently using the awscli version 2 to obtain temporary credentials at the command line. This seems to require a browser to be involved. This will not work everywhere like on a server for example. I would like to be able to obtain temporary credentials at the command line for my user account using AWS SSO. Is this possible. From what I can tell from the SDK documentation <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html" rel="nofollow noreferrer">here</a> and the awscli version 2 utility, there does not seem to be a way to do this.</p>
  
  <p>The "device code" OAuth2 grant type is explicitly meant for browserless authentication as mentioned <a href="https://oauth.net/2/grant-types/device-code/" rel="nofollow noreferrer">here</a> But the AWS SSO SDK doesn't seem to be able to support this.</p>
  
  <p>Would appreciate any ideas/thoughts/help on this issue.</p>
  
  <p>Thank You,
  Vish </p>