Coder Social home page Coder Social logo

choo-auth0's Introduction

Auth0 secured choo

Securing a choo app with Auth0.

Check out the working demo.

This repository is an example implementation for a blogpost on the topic of [Coming soon].

Setup Auth0 Application

Before you can run the project you should go into your Auth0 Applications and create an application or choose one to use for this example. Make sure to note down the Cleint ID and Domain for your application.

You also need to setup an Allowed Callback URL: `https://localhost:8080/dashboard´. Simply add it on a blank line in your applications settings ""Allowed Callback URLs" section. You might also want to set "Application Type" to "Single Page Application".

Because we want to use tokens in JWT format we also need to define an API. Navigate to that point of the left side menu and click "+ CREATE API" to add a new one. Please use https://jsonplaceholder.typicode.com/ as the "Identifier" for your new API to be compatible with this project. (Or change the audience in sotres/auth.js.) Apart from that you can use the default settings.

Running the project

To run the project, first run npm i. After that, you need to set two environment variables: DOMAIN and CLIENT_ID before you can run npm start.

Now locally run the application with:

DOMAIN=[your Domain] CLIENT_ID=[your Client ID] npm start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.