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
+97-3Lines changed: 97 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,17 @@
5
5
importos.path
6
6
importsubprocess
7
7
importsys
8
+
importurllib
8
9
fromdatetimeimportdatetime, timezone
9
10
fromosimportenviron
10
11
fromplatformimportsystem
11
12
13
+
importboto3
12
14
importbotocore
13
15
importbotocore.exceptions
14
16
importbotocore.session
15
17
importclick
18
+
importrequests
16
19
frombotocoreimportclient
17
20
18
21
from . importauthenticator, helpers, prepare, role_chooser
@@ -90,6 +93,19 @@
90
93
is_flag=True,
91
94
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
95
)
96
+
@click.option(
97
+
'--print-console-signin-url',
98
+
is_flag=True,
99
+
help='Output a URL that lets users who sign in to your organization\'s network securely access the AWS Management Console.',
100
+
)
101
+
@click.option(
102
+
"--console-role-arn",
103
+
help="Role to assume for use in conjunction with --print-console-signin-url",
104
+
)
105
+
@click.option(
106
+
"--console-external-id",
107
+
help="External ID to pass in assume role for use in conjunction with --print-console-signin-url",
108
+
)
93
109
@click.option(
94
110
'--role-arn',
95
111
help='Predefined role arn to selects, e.g. aws-adfs login --role-arn arn:aws:iam::123456789012:role/YourSpecialRole',
0 commit comments