PacoVK / tapir

A Private Terraform Registry
https://pascal.euhus.dev/tapir/
Apache License 2.0
206 stars 15 forks source link

Authentification with AWS Cognito #453

Open tuankietngo opened 1 month ago

tuankietngo commented 1 month ago

Hello I'm using AWS Cognito as the OICD for Tapir authentification. When i logined, i received the 401 unauthorized. I know that i need to put the role admin into the token of Cognito. But i don't know how to put it in the token, i used a lambda for pre token generation to add a customized claim into the token. I tried to add this claim but i didn't work:

So i want to ask: