
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
payload-auth0-plugin
Advanced tools
Extends payloadcms
with Auth0 integration
yarn add payload-auth0-plugin
import { auth } from "express-openid-connect";
const config = {
authRequired: false,
idpLogout: true,
auth0Logout: true,
baseURL: process.env.REACT_APP_SERVER_BASE_URL,
clientID: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
issuerBaseURL: process.env.AUTH0_DOMAIN,
secret: "<LONG_RANDOM_STRING>",
routes: {
login: process.env.REACT_APP_AUTH0_LOGIN_URL,
logout: process.env.REACT_APP_AUTH0_LOGOUT_URL,
callback: process.env.AUTH0_CALLBACK_URL,
},
};
app.use(auth(config));
REACT_APP_SERVER_BASE_URL=http://localhost:3000
REACT_APP_AUTH0_LOGIN_URL=/auth0/login # the one you set up in Auth0
REACT_APP_AUTH0_LOGOUT_URL=/auth0/logout # the one you set up in Auth0
AUTH0_CALLBACK_URL=/auth0/callback # the one you set up in Auth0
import Auth0Avatar from from "payload-auth0-plugin/dist/components/Auth0Avatar";
import { LoginButton } from "payload-auth0-plugin/dist/components";
export default buildConfig({
....
admin: {
avatar: Auth0Avatar,
logoutRoute: process.env.REACT_APP_AUTH0_LOGOUT_URL,
inactivityRoute: process.env.REACT_APP_INACTIVITY_URL,
components: {
afterLogin: [LoginButton()],
},
}
})
import { Auth0Strategy } from "payload-auth0-plugin";
import { PictureField } from "payload-auth0-plugin/dist/components";
const MyAuthCollection: CollectionConfig = {
slug: "authCollection",
auth: {
strategies: [
{
name: Auth0Strategy.name,
strategy: (ctx) => {
return new Auth0Strategy(ctx, "authCollection");
},
},
],
},
fields: [
{
name: "picture",
type: "text",
admin: {
hidden: true,
condition: (data) => {
return data.picture;
},
},
},
{
name: "pictureVisual",
type: "ui",
admin: {
position: "sidebar",
condition: (_, siblingData) => {
return siblingData.picture;
},
components: {
Field: PictureField,
Cell: PictureField,
},
},
},
{
name: "sub",
type: "text",
admin: {
readOnly: true,
condition: (data) => {
return data.sub;
},
},
},
],
};
FAQs
Extends `payloadcms` with Auth0 integration
The npm package payload-auth0-plugin receives a total of 40 weekly downloads. As such, payload-auth0-plugin popularity was classified as not popular.
We found that payload-auth0-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.