I want to autherize user at cloudfront using lambd...
# general
k
I want to autherize user at cloudfront using lambda Edge by validation of token How can I achieve that
r
hey @krrishan im not sure about lambda edge specifically, but usually, you can give the jwks endpoint we expose to the third party which then just verifies the token on its own.
k
also can you tell how to get kid
r
whats the apiBasePath you have configured for the backend SDK? And whats the apiDomain for the backend sdk integration?
k
r
If you send a get request to this endpoint from your browser, what do you see?
To the jwks endpoint I mean
k
r
You are using ngrok here. Try localhost:3331? Since that’s what you have used in your code
k
I am using ngrok only in my code too
r
Can I see the updated code?
k
r
I’m not sure why you are getting that error
If you figure it out, let us know please. Thanks
k
Can you please check at your end too and let me know I followed the documentation only . Blocked on this
r
Ok
it works for me. Followed the doc.
k
Btw if I make simple get call to verify token and use this method of yours , how does it work and how fast it is in respect to jwks method if I dont check for session in database ?
r
it should be instant since it doesnt require a network call most of the time.
k
can you tell in comparison to jwks approach please ?
r
it's the same thing.. we use the same endpoint
k
ok