Skip to content

Conversation

@andrestejerina97
Copy link
Contributor

$user_id = $resource_server_ctx->getCurrentUserId();
$user_email = $resource_server_ctx->getCurrentUserEmail();

$user = $resource_server_ctx->getCurrentUser(false, false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@andrestejerina97 please do a main rebase and use these new methods from resource context
instead of getting current user
9bb2c6c

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

@andrestejerina97 please review comments many thanks

@andrestejerina97 andrestejerina97 force-pushed the feature/add-field-in-auditotlpstrategy branch from 003e3c5 to 5ec3dbd Compare October 23, 2025 21:12
@andrestejerina97 andrestejerina97 force-pushed the feature/add-field-in-auditotlpstrategy branch from 5ec3dbd to 4ae663f Compare October 23, 2025 21:14
}

$resource_server_ctx = App::make(\models\oauth2\IResourceServerContext::class);
$user_id = $resource_server_ctx->getCurrentUserId();
Copy link
Collaborator

Choose a reason for hiding this comment

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

@andrestejerina97 sorry for the back and forth but as u may know from latest slack conversation we are sending the wrong data at $user_id
so we will need to use your original approach
$user = $resource_server_ctx->getCurrentUser(false, false);
and get do $user_id = $user->getId();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

@andrestejerina97 please review comments

Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

LGTM

@smarcet smarcet merged commit f52f1b0 into main Oct 24, 2025
3 checks passed
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.

3 participants