You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws_adfs/login.py
+47-4Lines changed: 47 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
importos.path
6
6
importsubprocess
7
7
importsys
8
+
importurllib
8
9
fromdatetimeimportdatetime, timezone
9
10
fromosimportenviron
10
11
fromplatformimportsystem
@@ -13,6 +14,7 @@
13
14
importbotocore.exceptions
14
15
importbotocore.session
15
16
importclick
17
+
importrequests
16
18
frombotocoreimportclient
17
19
18
20
from . importauthenticator, helpers, prepare, role_chooser
@@ -90,6 +92,11 @@
90
92
is_flag=True,
91
93
help='Output commands to set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_DEFAULT_REGION environmental variables instead of saving them to the aws configuration file.',
92
94
)
95
+
@click.option(
96
+
'--print-console-signin-url',
97
+
is_flag=True,
98
+
help='Output a URL that lets users who sign in to your organization\'s network securely access the AWS Management Console.',
99
+
)
93
100
@click.option(
94
101
'--role-arn',
95
102
help='Predefined role arn to selects, e.g. aws-adfs login --role-arn arn:aws:iam::123456789012:role/YourSpecialRole',
0 commit comments