{"id":3793,"date":"2023-06-21T09:34:52","date_gmt":"2023-06-21T09:34:52","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3793"},"modified":"2023-06-21T09:34:52","modified_gmt":"2023-06-21T09:34:52","slug":"aws-sso-login-picking-the-wrong-browser","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3793","title":{"rendered":"AWS SSO Login Picking the Wrong Browser"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When you are trying to login to AWS using the CLI tool, you may find that the window opens a tab in the wrong browser, to get around this you can apply a &#8220;&#8211;no-browser&#8221; at the end of the sso login command, for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aws sso login --profile &lt;profile name> --no-browser<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now instead of opening a browser automatically, you&#8217;ll get the code and a pre-formatted URL which contains a code, that you can then use in the browser tab of your choice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I personally use this when I need to swap from a normal management profile to a more powerful management profile that requires me to login to AWS with a completely different user account, to ensure the correct browser window can be used!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are trying to login to AWS using the CLI tool, you may find that the window opens a tab in the wrong browser, to get around this you can apply a &#8220;&#8211;no-browser&#8221; at the end of the sso login command, for example: Now instead of opening a browser automatically, you&#8217;ll get the code &#8230; <a title=\"AWS SSO Login Picking the Wrong Browser\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=3793\" aria-label=\"Read more about AWS SSO Login Picking the Wrong Browser\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,3],"tags":[],"class_list":["post-3793","post","type-post","status-publish","format-standard","hentry","category-aws","category-cloud"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3793"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3793\/revisions"}],"predecessor-version":[{"id":3794,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3793\/revisions\/3794"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}