Aws-cli: CLI V2 Preview: Network Error Authenticating With SSO

Created on 12 Nov 2019  Â·  14Comments  Â·  Source: aws/aws-cli

Attempting to follow this guide: https://aws.amazon.com/blogs/developer/aws-cli-v2-now-supports-aws-single-sign-on/

When entering the code into https://device.sso.eu-west-2.amazonaws.com/

I get the following error as a red box in the top right corner of my browser:

Unexpected Error
TypeError: NetworkError when attempting to fetch resource.
service-api

Most helpful comment

I've heard from the team that owns this page that this should be fixed. If you're still running into this you may need to clear the caching in your browser. Let me know if you're still running into this.

All 14 comments

+1

CSP is blocking. When I disabled it the connection worked as expected.

+1

CSP is blocking. When I disabled it the connection worked as expected.

CSP?

@mhbrooks I think CSP stands for Content Security Policy. I am also having the same issue.

same issue here had to disable browser CSP to get it to work

Ah! great find, I was thinking of an AWS issue, was wondering if @bondsbw meant SCP. Can see in firefox the page is blocked because of CSP though.

This is a duplicate of #4639.

same issue here How do you disable CSP?

In Firefox you can do that by changing security.csp.enable on the about:config page but I wouldn't recommend doing that for your main browser.

Some extensions could allow you to do it in chrome or other browsers but again I don't think that is the best solution. It does the job for testing though.

Same issue here on both OSX+Chrome and Windows 10+Chrome

I've heard from the team that owns this page that this should be fixed. If you're still running into this you may need to clear the caching in your browser. Let me know if you're still running into this.

Cheers.

I've heard from the team that owns this page that this should be fixed. If you're still running into this you may need to clear the caching in your browser. Let me know if you're still running into this.

Works fine now.

Can you pass on some feedback to the team? Can we please get a subcommand for configuring in non-interactive mode? It gets tedious when you have lots of accounts and lots of developers.

aws2 configure sso --start_url https://org.awsapps.com/start --sso_region ap-southeast-2 --account_id 123456789012 --role somerole --profile 123456789012_somerole

That would be great, would also allow for programmatic stuff to be done.

On Thu, Nov 14, 2019 at 10:00 AM Winston Lee notifications@github.com
wrote:

I've heard from the team that owns this page that this should be fixed. If
you're still running into this you may need to clear the caching in your
browser. Let me know if you're still running into this.

Works fine now.

Can you pass on some feedback to the team? Can we please get a subcommand
for configuring in non-interactive mode? It gets tedious when you have lots
of accounts and lots of developers.

aws2 configure sso --start_url https://org.awsapps.com/start --sso_region ap-southeast-2 --account_id 123456789012 --role somerole --profile 123456789012_somerole

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aws/aws-cli/issues/4645?email_source=notifications&email_token=AEKSIW6V7QP7IRGX273254TQTSBIZA5CNFSM4JMCCP7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED7645Q#issuecomment-553643638,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEKSIW237LPVBTDORSA4FKDQTSBIZANCNFSM4JMCCP7A
.

--
Louis Willcock
Software Developer
Phone: 0422984471

Fixed! Thanks!

Was this page helpful?
0 / 5 - 0 ratings