Fork me on GitHub
#aws
<
2023-03-27
>
FlavaDave21:03:04

Hey all, I'm looking to build a rest api in clojure and want to use cognito as the authorizer for most of the endpoint. Its very difficult to find docs on using cognito to protect APIs that aren't for AWS API gateway. can someone help me figure out which actions I should be calling from the server to verify the token I'll be passing in the headers?

jumar05:03:18

I don't have an exact answer but @U8A5NMMGD has a great course "Learn Pedestal" where he uses Cognito to for authentication. The code is available here: https://github.com/jacekschae/learn-pedestal-course-files/tree/main/increments AWS Cognito stuff is lessons 53 - 61, I think. I also have my own code for that course, this PR might be the most relevant: https://github.com/jumarko/learn-pedestal/pull/33/files

❤️ 1