Closed rochdev closed 5 years ago
It's hard to diagnose without having access to the token and key, but off the top of my head try a couple things:
allow group Admin
and see if it's a claim problem or a signature problemHopefully that should narrow down the source of the problem.
This was caused by my Caddy image being too old and not having the token_source
option. Updating the plugin solved the issue.
Great, hope it works out for you.
I cannot get the
http.jwt
plugin to work with a JWT signed with H256. It always results in a 401 error.What I've tried:
JWT_SECRET
environment variable.secret
option./etc/secrets/app.txt
and adding the path as the value of thesecret
option. I have validated that there is no newline at the end of the file withcat -vet /etc/secrets/app.txt
.777
.jsonwebtoken
and it's valid.My configuration:
At this point I really don't know what else to try. It seems that no matter what I do the request is rejected with a 401. Interestingly enough, the plugin seems to work if I pair it with the
http.login
plugin and Google OAuth, but not with a JWT alone.