Identity won't allow users with JWT through

I’m trying to set up JWT for site access on a static site, but logged-in users are still being redirected.

My redirects:

[[redirects]]
 from = "/*"
 status = 200
 conditions = {Role = ["*"]}
 force = true

I’ve written a netlify function based on the verify-okta sample code which sets a cookie called nf_jtw. Example value for a successful login: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfbWV0YWRhdGEiOnsiYXV0aG9yaXphdGlvbiI6eyJyb2xlcyI6WyJ1c2VyIl19fSwiZXhwIjoxNTcxNTQyOTk3LCJzdWIiOiJ0aWdlcmEifQ.q5KzRXyNEtg89fPVxE2e1NnsBOv2JSnsnDW8JI0zCrQ

My dummy JWT secret is ‘secret’. I’ve set this on both site & global level of netlify.

What am I missing? Is there any way to see logs?

Solved. I needed to disable Netlify Identity before I could use the 3rd party JWT integration.

1 Like

thanks for posting your solution!