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

Re-factored to use the official onelogin client #33

Merged
merged 7 commits into from
Jan 28, 2018

Conversation

drewsonne
Copy link
Contributor

@drewsonne drewsonne commented Jan 28, 2018

This PR removes custom http code and simplifies the code by using the official onelogin python SDK.

This is in relation to #32 . I think the better way to go about extending the session, is rather than try to use AWS to generate longer sts session, use onelogin to re-auth. This is already being done with the renewSeconds option, but if MFA is enabled the user must re-enter their MFA tokens every hour. I will propose to use the refresh tokens in onelogin to have longer periods where MFA is not required.

Using the onelogin sdk will reduce the amount of code required to do this.

Using a client library will also make generating mocks for tests significantly easier

@slycoder
Copy link
Contributor

LGTM. Much cleaner now.

@slycoder slycoder merged commit 5175502 into physera:master Jan 28, 2018
@slycoder
Copy link
Contributor

And I agree --- if you can get refresh tokens to work then it'll make things much easier in non-mfa situations.

@drewsonne drewsonne deleted the feature/ol_sdk branch January 29, 2018 05:17
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

Successfully merging this pull request may close these issues.

2 participants