Skip to content

Keystone V3: Introduce TOTP (two factor) auth support#1922

Merged
jtopjian merged 2 commits intogophercloud:masterfrom
kayrus:totp
Apr 6, 2020
Merged

Keystone V3: Introduce TOTP (two factor) auth support#1922
jtopjian merged 2 commits intogophercloud:masterfrom
kayrus:totp

Conversation

@kayrus
Copy link
Copy Markdown
Contributor

@kayrus kayrus commented Apr 2, 2020

Resolves #1917

@jtopjian I didn't find a way to perform tests in multi-step approach https://docs.openstack.org/api-ref/identity/v3/?expanded=multi-step-authentication-2-factor-password-and-totp-example-detail#multi-step-authentication-2-factor-password-and-totp-example

In my case passcodes are generated using a dongle and I can enter them in advance, therefore the auth request sends both password and totp auth requests in one call.

I'll try to add a receipt response handler in further PRs.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 2, 2020

Coverage Status

Coverage decreased (-0.1%) to 78.556% when pulling 483b94a on kayrus:totp into e2dceb1 on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 2, 2020

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Apr 3, 2020

I didn't find a way to perform tests in multi-step approach

I'm OK with skipping tests on this one - I understand it can be difficult. As long as you've confirmed it works in some environment, that's good enough for me.

One style request for this PR: let's use TOTP and totp.

@jtopjian jtopjian mentioned this pull request Apr 3, 2020
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Apr 3, 2020

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Apr 4, 2020

@kayrus This looks good to me. Are you still working on it or is it ready to be merged?

@kayrus
Copy link
Copy Markdown
Contributor Author

kayrus commented Apr 5, 2020

@jtopjian ready

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you!

@jtopjian jtopjian merged commit 602bb2e into gophercloud:master Apr 6, 2020
@kayrus kayrus deleted the totp branch April 6, 2020 06:15
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.

Keystone V3: Add TOTP (two factor) auth method support

3 participants