Comments (4)
I'm not super familiar with Auth0 so I might need a hand here. I'm also referencing jwt's section on signature (about half way down the page).
So I'm guessing instead of just a secret
that is a garbled string (ie dfjjf3209adlkjlj02$F
) -- Auth0 base64 encodes the secret they sign tokens with ... and I suppose JWT libraries default to expecting ... not base64?
Is this something that would be common only really to Auth0?
If I'm on the right track - let me know if you think this is a good addendum:
In the case that your token's secret is base64 encoded you will need to make sure you decode it prior to passing it into your jwt verification function.
from auth-boss.
It's not about Auth0 as much as it is recommended to encode the client secret. It's another measure of security to obscure the client secret.
from auth-boss.
Obscurity is not security.
The encoding is so that it can be passed safely in HTTP headers, which have all sorts of very special parsing rules, especially regarding commas: https://tools.ietf.org/html/rfc7230#section-3.2.2
The base64 encoding is a trivial implementation detail and not necessarily worth going into here. It doesn't affect the design and isn't a factor when considering which auth mechanism to use.
from auth-boss.
Thanks for the input folks.
In this case, I've decided to add a snippet discussing the possibility of needing to decode a base64 secret key prior to decoding the token itself.
from auth-boss.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth-boss.