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

Prioritise authentication with user credentials over refresh token if both are sent. #130

Merged
merged 11 commits into from
Oct 2, 2024

Conversation

dominic-ks
Copy link
Collaborator

Addressing the issue reported here:

I also added some checks so that we can handle cases where a username is provided and no password or vice versa so that we don't log someone in based on a refresh token purely because an invalid request has been made.

readme.txt Outdated Show resolved Hide resolved
class-auth.php Outdated Show resolved Hide resolved
class-auth.php Outdated Show resolved Hide resolved
class-auth.php Show resolved Hide resolved
@sun sun changed the title Prioritise new logins Prioritise authentication with user credentials over refresh token if both are sent. Sep 11, 2024
@dominic-ks dominic-ks requested a review from sun September 20, 2024 17:00
Copy link
Collaborator

@sun sun left a comment

Choose a reason for hiding this comment

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

Thank you - Looks good to me. Only found one issue that we’d need to address

class-auth.php Outdated Show resolved Hide resolved
readme.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@sun sun left a comment

Choose a reason for hiding this comment

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

Thank you! :) This looks good now.

class-auth.php Outdated Show resolved Hide resolved
Co-authored-by: Daniel Kudwien <[email protected]>
@sun sun merged commit 95e232c into usefulteam:master Oct 2, 2024
@sun sun linked an issue Oct 2, 2024 that may be closed by this pull request
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.

Wrong Token and Data Returned
2 participants