Skip to content

Throw an invalid token exception is token is marked outdated - #17443

Merged
rullzer merged 1 commit into
masterfrom
enh/expired_token_on_invalid_pass
Dec 3, 2019
Merged

Throw an invalid token exception is token is marked outdated#17443
rullzer merged 1 commit into
masterfrom
enh/expired_token_on_invalid_pass

Conversation

@rullzer

@rullzerrullzer commented Oct 7, 2019

Copy link
Copy Markdown
Member

This avoids hitting the backend with multiple requests for the same
token. And will help avoid quick LDAP lockouts.

@rullzerrullzer added this to the Nextcloud 18 milestone Oct 7, 2019
@rullzerrullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 15, 2019
@rullzer

Copy link
Copy Markdown
MemberAuthor

I think this is good to go :)

Comment threadlib/private/Authentication/Token/PublicKeyTokenProvider.php Outdated
Comment threadlib/private/Authentication/Exceptions/PasswordExpiredTokenException.php Outdated
Comment threadlib/private/Authentication/Token/PublicKeyTokenProvider.php
Comment threadlib/private/Authentication/Token/PublicKeyTokenProvider.php Outdated
@rullzer

rullzer commented Nov 13, 2019

Copy link
Copy Markdown
MemberAuthor

Review time

@blizzz this should help a bit with locked out LDAP stuff.
I think this was even one of the origianl use cases when we first talked about it

@blizzzblizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makes sense

@blizzz

Copy link
Copy Markdown
Member

I think this was even one of the origianl use cases when we first talked about it

Yes, when password changed on the backend. But it used to be working iirc?

@blizzz

This comment has been minimized.

This avoids hitting the backend with multiple requests for the same
token. And will help avoid quick LDAP lockouts.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@ChristophWurst
ChristophWurstforce-pushed the enh/expired_token_on_invalid_pass branch from 35facfc to b371e73CompareDecember 2, 2019 17:57
@rullzer
rullzer merged commit 9fce87b into masterDec 3, 2019
@rullzer
rullzer deleted the enh/expired_token_on_invalid_pass branch December 3, 2019 07:59
@ChristophWurst

Copy link
Copy Markdown
Member

/backport to stable17

@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable17 in #18198

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@rullzer@blizzz@ChristophWurst