-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add first_name and last_name into OtlpStrategy #438
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
Conversation
| $user_id = $resource_server_ctx->getCurrentUserId(); | ||
| $user_email = $resource_server_ctx->getCurrentUserEmail(); | ||
|
|
||
| $user = $resource_server_ctx->getCurrentUser(false, false); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
smarcet
left a comment
There was a problem hiding this 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
003e3c5 to
5ec3dbd
Compare
5ec3dbd to
4ae663f
Compare
app/Audit/AuditLogOtlpStrategy.php
Outdated
| } | ||
|
|
||
| $resource_server_ctx = App::make(\models\oauth2\IResourceServerContext::class); | ||
| $user_id = $resource_server_ctx->getCurrentUserId(); |
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
smarcet
left a comment
There was a problem hiding this 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
smarcet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ref: https://app.clickup.com/t/86b6r27rt?comment=90140149532551