Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@orikami/micro-auth0
Advanced tools
Helper to get user using Auth0
npm install --save @orikami/micro-auth0
By default, micro-auth0 is configured to use RS256 with the orikami.eu.auth0.com public key. It will not check for any roles by default.
You can customize and verify the configuration as follows:
RS256
publickey
.If you want to customize configuration, create a auth0.js in your project:
module.exports = {
publickey: `...` // default: orikami.eu.auth0.com
roles: {
key: "https://orikami-api.nl/roles",
// allowed: ['developer'],
},
jwt: {
algorithms: ["RS256"],
// audience: "https://orikami-api.nl/v1/",
// ignoreExpiration: false
// issuer: "",
// subject: "",
// maxAge: "",
// clockTolerance: 10
}
}
If you define roles.allowed
, micro-auth0 will check if the role in the token. Currently, this is configured using the Authorization extension of Auth0.
See https://orikami.eu8.webtask.io/adf6e2f2b84784b57522e3b19dfc9201/admins/login
const auth0 = require("@orikami/micro-auth0")(require("./auth0.js"));
const handler = require("./index");
module.exports = auth0(handler);
If you change the publickey in the auth0.js
file be aware that the Certificate string has no tabs or extra space in it.
x-forwarded-uri
FAQs
Micro Auth0 helper
We found that @orikami/micro-auth0 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.