Skip to content

aserto-demo/todo-application-auth0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Todo App using Auth0 for authentication

This is the front-end for the React Todo application example. It is derived from https://github.com/aserto-demo/todo-application, but wired up to the Auth0 SDK for authentication.

Configuration

Copy the .env.example file to .env, and provide the following values:

REACT_APP_AUTH0_DOMAIN={your Auth0 domain}
REACT_APP_AUTH0_CLIENT_ID={ClientID for an Auth0 SPA app}
REACT_APP_AUTH0_AUDIENCE={use "citadel-app" or create an "API" in Auth0 and use the audience value}

Running the front end

yarn

yarn start

Backends

This sample requires a backend that implements the Todo API.

NOTE: You will need to change the following environment variables in any back-end app you select, matching up with the Auth0 values you provided here:

JWKS_URI=https://{your-auth0-domain}.auth0.com/.well-known/jwks.json
ISSUER=https://{your-auth0-domain}.auth0.com/
AUDIENCE={use "citadel-app" or create an "API" in Auth0 and use the audience value}

The following language-specific back-end sample apps are available, which demonstrate using Aserto for authorization:

Language Repo
Node.js https://github.com/aserto-demo/todo-node-js-v2
Go https://github.com/aserto-demo/todo-go-v2
Java https://github.com/aserto-demo/todo-java-v2
Python https://github.com/aserto-demo/todo-python-v2
Ruby https://github.com/aserto-demo/todo-ruby-v2
.NET https://github.com/aserto-demo/todo-dotnet-v2

About

A Todo application using Auth0 for authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published