Replies: 1 comment
-
did you try to inject it into the constructor of your custom lookupscript?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In previous versions of serenity I could use
Authorization.UserDefinition
pretty much anywhere to get the logged in users definition.In .net5 I can get this using
User.GetUserDefinition(_UserRetrieveService) as UserDefinition;
Problem is, how do I do this from a custom lookup script
RowLookupScript
?. I can do this in endpoints and repositories easily using[FromServices] IUserRetrieveService userRetrieveService
and the ClaimsPrincipalUser
is available in those classes. The same cannot be said for elsewhere.Beta Was this translation helpful? Give feedback.
All reactions