Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
400 views
in Technique[技术] by (71.8m points)

python - How can I authenticate to AWS via SAML ADFS?

I have been having problems with running the samlapi.py script detailed on this page:

https://aws.amazon.com/blogs/security/how-to-implement-federated-api-and-cli-access-using-saml-2-0-and-ad-fs/

I am following everything correctly, but I continue to run into errors such as this:

Traceback (most recent call last): File "./samlapi.py", line 6, in <module> import boto.sts ModuleNotFoundError: No module named 'boto.sts'

Even though I DID install boto.

As well as...

Traceback (most recent call last): File "/Users/chrisroarke/samlapi.py", line 8, in <module> import requests ModuleNotFoundError: No module named 'requests'

Even though I DID install requests-ntlm.

I am following the instructions on this article and continue to run into these issues. Very frustrating. I am on MacOS, running Big Sur, Python3.9, have installed 'beautiful soup' as well as 'requests-ntlm' as instructed; I just don't know why it cannot seem to find these modules.

If anyone out there has run into this issue and has a potential solution to propose I'm all ears and would greatly appreciate it!

Cheers - Chris

question from:https://stackoverflow.com/questions/65949163/how-can-i-authenticate-to-aws-via-saml-adfs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...