Change Principal
to be TypedPrincipal
in the authorize interceptor
#3845
Labels
Principal
to be TypedPrincipal
in the authorize interceptor
#3845
Steps to reproduce
The
authorizeInterceptor
should useTypedPrincipal
instead ofPrincipal
in theauthorization context.
And we should provide a default factory that converts a
user profile to a typed principal in
@loopback/security
.See PR #3807
Current Behavior
Authorizer interceptor still uses a more general type
Principal
, see code and codeExpected Behavior
User
TypedPrincipal
instead.Acceptance Criteria
Principal
to beTypedPrincipal
in the authorize interceptor.The text was updated successfully, but these errors were encountered: