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

Clear login token once apppassword is generated #7698

Merged
merged 1 commit into from
Jan 4, 2018
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Jan 4, 2018

Fixes #7697

When using the new login flow a token will be generated since we login.
However after that we generate yet another token to return (as we
should).

However we should kill the current session token as we are done with it.
And will never use it again.

To test use the android client for example (I don't know if IOS already has this?). Add a new account.

Before:
See 2 identical named sessions in the Security tab of your personal settings

Now:
Just see 1

CC: @tobiasKaminsky

Fixes #7697

When using the new login flow a token will be generated since we login.
However after that we generate yet another token to return (as we
should).

However we should kill the current session token as we are done with it.
And will never use it again.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke MorrisJobke mentioned this pull request Jan 4, 2018
30 tasks
@MorrisJobke MorrisJobke added this to the Nextcloud 13 milestone Jan 4, 2018
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 4, 2018
@MorrisJobke MorrisJobke merged commit 9c2660e into master Jan 4, 2018
@MorrisJobke MorrisJobke deleted the fix_7697 branch January 4, 2018 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: authentication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants