Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version of the repo causes "Access_token could not be retrieved" client_id & client secret. #84

Open
yvanfm91 opened this issue Jan 30, 2023 · 3 comments

Comments

@yvanfm91
Copy link

Hello folks!

I have a headache with this problem and I am not able to solve it.... I would like to have your support =)

Well, I consider that is important to mention that 3 month ago, this tool was working in my old laptop, and now I'm trying to install it in another one, but it's impossible to start working with the tool due an error. So...

Previously, if I remember It was working with repo version 1.8.1 or 1.9.0 and python-3.9 and everybody was happy.

Now, with another laptop but the same brand, model, system, and tools... It's not working. I've tried with python-3.8, 3.9, 3.11.... and the latest version of this repo, but still in the same.

The error is:

$ onelogin-aws-assume-role

OneLogin AWS Assume Role Tool

Traceback (most recent call last):
  File "C:\Users\ivan.fernandez\AppData\Local\Programs\Python\Python39\Scripts\onelogin-aws-assume-role-script.py", line 33, in <module>
    sys.exit(load_entry_point('onelogin-aws-assume-role==1.10.1', 'console_scripts', 'onelogin-aws-assume-role')())
  File "C:\Users\ivan.fernandez\AppData\Local\Programs\Python\Python39\lib\site-packages\onelogin_aws_assume_role-1.10.1-py3.9.egg\aws_assume_role\aws_assume_role.py", line 544, in main
  File "C:\Users\ivan.fernandez\AppData\Local\Programs\Python\Python39\lib\site-packages\onelogin_aws_assume_role-1.10.1-py3.9.egg\aws_assume_role\aws_assume_role.py", line 223, in get_client
Exception: Invalid client_id and client_secret. Access_token could not be retrieved

It seems it's related with the file "onelogin.sdk.properties", is in the right location but I don't no why I get that kind of error. I have searched a lot in google, stackoverflow, but nothing solve my problem or gave me an idea of how to solve it.

Could someone please help me? I beg you =(

EXTRA: I use python in a user (or profile) mode, not in a system level, downloaded from the original Python Website.

OS: Windows 10
P.S.: If you need more info, let me know.

@lvsovoy
Copy link

lvsovoy commented May 16, 2023

Upon investigation I found out that actually the underlying issue lies in HTTPS requests complaining about SSL sertificate.
self signed certificate in certificate chain (_ssl.c:1002)
I found out that installing pip-system-certs fixes it

@yvanfm91
Copy link
Author

yvanfm91 commented Jun 2, 2023 via email

@keidarcy
Copy link

Hi, I found a workaround. If you need extra CA certificate, you can add your certificate file path to REQUESTS_CA_BUNDLE environment variable before onelogin client request and remove it before aws client request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants