aws-samples / keycloak-on-aws

This is a solution for deploying Keycloak to AWS with high availability.

Home Page:https://www.amazonaws.cn/solutions/keycloak-on-aws/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

refarch: keycloak integration with Amazon API Gateway

pahud opened this issue · comments

This is useful:

API login and JWT token generation using Keycloak
https://developers.redhat.com/blog/2020/01/29/api-login-and-jwt-token-generation-using-keycloak/

We should be able to generate the JWT token like above and the client send the JWT token as the Bearer token to API Gaetway followed by the token validation by the custom authorizer Lambda and return the IAM policy.

For the JWT token validation, I believe there should be existing libraries but technically it's possible to validate with the public key like this:
https://stackoverflow.com/questions/54884938/generate-jwt-token-in-keycloak-and-get-public-key-to-verify-the-jwt-token-on-a-t