piontas / python-aada Goto Github PK
View Code? Open in Web Editor NEWAzure AD AWS Cli Authorization
License: MIT License
Azure AD AWS Cli Authorization
License: MIT License
Hi, I am getting the following output when installing as per directions on the README. I am using virtualenv with a homebrew installed python3.7. The following is the output:
Firstly I want to say thanks for writing this awesome tool :)
Now for the bug report:
The login process bombs out under macOS Catalina with the following error.
[E:pyppeteer.connection] connection unexpectedly closed
Task exception was never retrieved
future: <Task finished coro=<Connection._async_send() done, defined at /Users/xxxxxxx/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pyppeteer/connection.py:69> exception=InvalidStateError('invalid state')>
Non headless mode logs in just fine.
Occasionally, when login in using PhoneAppNotification
(don't know of others), I get the following error:
Azure password:
Processing MFA authentication...
Future exception was never retrieved
future: <Future finished exception=NetworkError('Protocol error Target.sendMessageToTarget: Target closed.',)>
pyppeteer.errors.NetworkError: Protocol error Target.sendMessageToTarget: Target closed.
An error occured while authenticating, check credentials.
This happens after I approve the login in my mobile phone, so I guess it should not be caused by a mistyped password (?)
Any suggestion on this?
Also, thanks for this project ๐
Hello,
this piece of code:
if req.url == 'https://signin.aws.amazon.com/saml':
self.saml_response = parse_qs(req.postData)['SAMLResponse'][0]
is working only, when in no headless mode I click right mouse button on the page and then choose inspect option.
Is there any way to make it automate?
As soon as I enter aada login
, it auto populates the Azure username: None
, so I have no option to enter the username.
Any ideas?
$ aada login
Azure username: None
Azure password: Traceback (most recent call last):
Steps to reproduce
Result
Traceback (most recent call last): File "/usr/bin/aada", line 11, in <module> load_entry_point('aada==0.1.3', 'console_scripts', 'aada')() File "/usr/lib/python3.6/dist-packages/aada/cli.py", line 70, in main return cli.main() File "/usr/lib/python3.6/dist-packages/aada/cli.py", line 65, in main return self.__getattribute__('_{}'.format(self._parsed_args.command))() File "/usr/lib/python3.6/dist-packages/aada/cli.py", line 45, in _login return login() File "/usr/lib/python3.6/dist-packages/aada/login.py", line 65, in __call__ return self._login() File "/usr/lib/python3.6/dist-packages/aada/login.py", line 224, in _login self._azure_mfa)) File "/usr/lib64/python3.6/asyncio/base_events.py", line 467, in run_until_complete return future.result() File "/usr/lib/python3.6/dist-packages/aada/login.py", line 100, in _render_js_form page = await browser.newPage() AttributeError: 'coroutine' object has no attribute 'newPage' sys:1: RuntimeWarning: coroutine 'Launcher.launch' was never awaited
Environment
I am having hard time to install aada with pip on mac os catalina.
aada has been successfully installed but I am constantly getting command command not found error
Any thoughts what could be the issue ?
Thanks in advance
Kind Regards
When trying to login, it fails to ask me for the MFA token and then exits with the following stacktrace:
แ
aada login
Azure username: [email protected]
Azure password:
Azure MFA Token: Traceback (most recent call last):
File "/usr/local/bin/aada", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/aada/cli.py", line 84, in main
return cli.main()
File "/usr/local/lib/python3.7/site-packages/aada/cli.py", line 79, in main
return self.__getattribute__('_{}'.format(self._parsed_args.command))()
File "/usr/local/lib/python3.7/site-packages/aada/cli.py", line 52, in _login
return login()
File "/usr/local/lib/python3.7/site-packages/aada/login.py", line 82, in __call__
return self._login()
File "/usr/local/lib/python3.7/site-packages/aada/login.py", line 285, in _login
url, username_input, password_input, self._azure_mfa))
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/local/lib/python3.7/site-packages/aada/login.py", line 163, in _render_js_form
mfa_token = input('Azure MFA Token: ')
EOFError: EOF when reading a line
When role name contains '/' characters it's not possible to use -r parameter for these roles because of current implementation splits ARN by '/' and compare second item from split result with value of '-r' parameter.
So in case when the role named "dep1/group2/super.role3" its arn is something like "arn:aws:iam::123456789012:role/dep1/group2/super.role3".
Please fix.
Line 237 in 8bc01f7
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.