rorystokes / aws-saml-signon Goto Github PK
View Code? Open in Web Editor NEWGenerate AWS credentials via SAML SSO
License: Creative Commons Zero v1.0 Universal
Generate AWS credentials via SAML SSO
License: Creative Commons Zero v1.0 Universal
It would be great if we could autofill the username/password somehow.
Maybe we could persist credentials in a keychain or something like that.
I had a profile set in AWS_PROFILE
that did not exist in my AWS config yet. This caused aws-saml-signon to crash with:
(node:17237) UnhandledPromiseRejectionWarning: Error: Command failed: aws configure set aws_access_key_id SOMEKEY --profile some-profile
Traceback (most recent call last):
File "/usr/bin/aws", line 27, in <module>
sys.exit(main())
File "/usr/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 59, in main
rc = driver.main()
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 193, in main
command_table = self._get_command_table()
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 102, in _get_command_table
self._command_table = self._build_command_table()
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 122, in _build_command_table
command_object=self)
File "/usr/lib/python3.7/site-packages/botocore/session.py", line 671, in emit
return self._events.emit(event_name, **kwargs)
File "/usr/lib/python3.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/usr/lib/python3.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/usr/lib/python3.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/usr/lib/python3.7/site-packages/awscli/customizations/preview.py", line 69, in mark_as_preview
service_name=original_command.service_model.service_name,
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 318, in service_model
return self._get_service_model()
File "/usr/lib/python3.7/site-packages/awscli/clidriver.py", line 335, in _get_service_model
api_version = self.session.get_config_variable('api_versions').get(
File "/usr/lib/python3.7/site-packages/botocore/session.py", line 233, in get_config_variable
logical_name)
File "/usr/lib/python3.7/site-packages/botocore/configprovider.py", line 226, in get_config_variable
return provider.provide()
File "/usr/lib/python3.7/site-packages/botocore/configprovider.py", line 323, in provide
value = provider.provide()
File "/usr/lib/python3.7/site-packages/botocore/configprovider.py", line 382, in provide
config = self._session.get_scoped_config()
File "/usr/lib/python3.7/site-packages/botocore/session.py", line 334, in get_scoped_config
raise ProfileNotFound(profile=profile_name)
botocore.exceptions.ProfileNotFound: The config profile (some-profile) could not be found
at ChildProcess.exithandler (child_process.js:299:12)
at ChildProcess.emit (events.js:182:13)
at ChildProcess.EventEmitter.emit (domain.js:442:20)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Socket.EventEmitter.emit (domain.js:442:20)
at Pipe._handle.close (net.js:606:12)
(node:17237) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17237) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The error comes from the AWS CLI so it isn't really the fault of this tool, but it looks like the error isn't getting handled correctly because aws-saml-signon just hangs if this occurs. Maybe a promise somewhere doesn't have the error handled correctly?
When you select roles it just shows the ARN, not the friendly name (e.g. Admin, Developer)
It would be good to give some more context so we don't have to memorise account numbers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.