{"repo":"primait/localauth0","free":true,"listed":false,"github":"https://github.com/primait/localauth0","clone":"git clone https://github.com/primait/localauth0.git","description":"Mock auth0 service for local development","language":"Rust","stars":91,"topics":["auth0","docker","oauth","oauth2","openid","rust","development"],"license":null,"category":"auth-billing-email","readme_excerpt":"Localauth0 Localauth0 is a project that aims to be a helper while developing authentications inspired by localstack. Most of the time people tend to mock authentication in order to not be forced to create complex mocks. With localauth0 you can fake your auth0 tenant and test it offline for \"real\". Table of contents - Installation - APIs - Web page - Jwt - Jwks - Configuration - Local development - Integrate Localauth0 in an existing docker compose project - Healthchecks Installation In order to run localauth0 docker image execute the following: By default, the container exposes an http server on the port 3000 and an https one on port 3001. Note: The latest version is the same version written in the Cargo.toml file. APIs Web page After having run the localauth0 machine a web interface is available at . Here it's possible to: - get a fresh new JWT with given audience . - add/remove permissions for a given audience . Jwt - POST : used to get a freshly new JWT. Body should be: for the client credentials grant and for the authorization code grant. - GET : used to get a the list of all audiences with their associated permissions. - POST : used to set a list of permissions for given audience. Everytime a new JWT is requested for that audience those permissions will be injected in the JWT payload. Body should be: - GET : used to get the list of all permissions for the given audience. - GET : used to get the list of custom claims that will be injected in the JWT payload. - POST : used","default_branch":null,"files":null,"tree":[],"storefront":"/r/primait","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/primait/localauth0/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}