DEV Community

Discussion on: Serverless authorizers - custom REST authorizer

 
hzburki profile image
Haseeb Burki

I got the authorizer to work :D

The issue was with the principalId. I wanted to set the authenticated object as the principalId and add it in the request body, that way I would save an extra database query. Once I set the principalId to the token. The authorizer started working.

I have to query the authenticated user again in my controller, but I can live with that.

Thanks for your help.

Thread Thread
 
piczmar_0 profile image
Marcin Piczkowski

Glad to hear that :)