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

Login flow v2 #1384

Merged
merged 9 commits into from
Aug 26, 2019
Merged

Login flow v2 #1384

merged 9 commits into from
Aug 26, 2019

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Aug 21, 2019

No description provided.

Copy link
Member Author

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Some nit picking from me
But it works like a charm here :) Very nice.

src/gui/creds/flow2auth.cpp Show resolved Hide resolved
_pollTimer.start();


if (!QDesktopServices::openUrl(authorisationLink())) {
Copy link
Member Author

Choose a reason for hiding this comment

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

indentation is off

Copy link
Member

Choose a reason for hiding this comment

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

Powered by Visual Studio^^ Fixed now, thanks.



if (!QDesktopServices::openUrl(authorisationLink())) {
// TODO: Ask the user to copy and open the link instead of failing here!
Copy link
Member Author

Choose a reason for hiding this comment

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

Right good point!

Copy link
Member

Choose a reason for hiding this comment

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

UI handles it now (see 24aeb56) 😼

misch7 and others added 9 commits August 26, 2019 20:03
Signed-off-by: Michael Schuster <michael@schuster.ms>
This is the first draft of the Login Flow V2 authorization method.

See: https://docs.nextcloud.com/server/latest/developer_manual/client_apis/LoginFlow/index.html#login-flow-v2

- Adds the Login Fĺow V2 auth method
- Adds ability to reinitiate a new request via UI

TODO:
- Implement re-auth upon logout -> login
- Improve UI
- SSL: Client certificate login is possible at the first time only but missing after relaunch

Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Michael Schuster <michael@schuster.ms>
- Implements re-auth upon logout -> login
- Improves UI and security

TODO:
- SSL: Client certificate login is possible at the first time only but missing after relaunch

Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
Copy link
Member Author

rullzer commented Aug 26, 2019

Lets get this in now. It is pretty solid already and any issues will pop up I assume.

@misch7
Copy link
Member

misch7 commented Aug 26, 2019

Ok, that's fine for me 😸

Copy link
Member

@misch7 misch7 left a comment

Choose a reason for hiding this comment

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

😼

@misch7 misch7 merged commit 18404a1 into master Aug 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the login-flow-v2 branch August 26, 2019 19:48
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