Skip to content

Conversation

@aaronweeden
Copy link
Contributor

Description

This refactors the authenticateToken() method in classes/Rest/Controllers/BaseControllerProvider.php so that it sets _USER property of the $request object rather than returning the $user object. This allows for the authorize($request, $requirements) method to be subsequently called.

Motivation and Context

Tests performed

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

so the `authorize()` method can still be applied to it.
@jpwhite4 jpwhite4 added this to the 11.0.0 milestone Jul 18, 2023
@aaronweeden aaronweeden removed this from the 11.0.0 milestone Nov 2, 2023
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