Closed dagda1 closed 2 years ago
This is the next step in the evolution of getting the auth0-simulator to start from 1 command.
auth0-simulator
This PR makes it possible to start the simulator and also supply a username and password for a user who can authenticate:
npx @simulacrum/auth0-simulator --standalone --username=admin@org.com --password=Passw0rd
We still have the ssl problem and mkcert but this makes it easier.
You can add config to any of the things cosmiconfig supports like the package.json file:
package.json
, "auth0Simulator": { "domain": "localhost:4400", "clientID": "00000000000000000000000000000000", "audience": "https://thefrontside.auth0.com/api/v1/", "scope": "openid profile email offline_access", "rulesDirectory": "__mocks__/rules" }
I've also added some basic validation using zod in the auth0 types.
I've added --standalone, '--username' and '--password` switches to the auth0-simulator bin script. I'll update the README when the approach is agreed.
--standalone
https://user-images.githubusercontent.com/118328/160128199-08efd3e8-4159-4ee0-a1b2-8594f77e2106.mp4
Motivation
This is the next step in the evolution of getting the
auth0-simulator
to start from 1 command.This PR makes it possible to start the simulator and also supply a username and password for a user who can authenticate:
We still have the ssl problem and mkcert but this makes it easier.
Approach
You can add config to any of the things cosmiconfig supports like the
package.json
file:I've also added some basic validation using zod in the auth0 types.
I've added
--standalone
, '--username' and '--password` switches to the auth0-simulator bin script. I'll update the README when the approach is agreed.Screenshots
https://user-images.githubusercontent.com/118328/160128199-08efd3e8-4159-4ee0-a1b2-8594f77e2106.mp4