Giter VIP home page Giter VIP logo

auth0-springboot-security's Introduction

My Skills

auth0-springboot-security

A sample code that shows how to secure springboot-backend and react/typescript-frontend application using auth0. this is a simplified code from @auth0-developer-hub

GitHub followers GitHub forks GitHub watchers GitHub Repo stars

Built with

PostgreSQL: latest
JDK: oracle openJDK v19.0.2
Spring Boot: v2.7.12
React: Typescript
Auth0

Setup June 2023

Auth0 setups

  1. Create an Application

    To create an application, open the Applications section of Dashboard and click on the Create Application

    • Name: Hello World Client

    You can use any name

    • Application Type: Single Page Web Applications
  2. Fill out Application URIs

    Click on Settings tab of your Application page, and scroll until you see Application URIs

    • Allowed Callback URLs: http://localhost:4040/callback
    • Allowed Logout URLs: http://localhost:4040
    • Allowed Web Origins: http://localhost:4040
  3. click the Save Changes
  4. Create API

    To create API, open the APIs section of Dashboard and Click on the Create API

    • Name: Name: Hello World Server

      you can use any name

    • Identifier: https://hello-world.example.com

      you can use any logical identifier

Spring setups

  1. edit .env file
    • AUTH0-DOMAIN: go to Applications > Applications > your application > Domain
    • AUTH0-AUDIENCE: go to Applications > APIs > your server > Identifier
  2. edit application.properties

    set Name of Database and Postgres password

React setups

  1. install node.js on your local machine
  2. In the frontend directory, run this code on terminal to install package.json:
npm install
npm start
  1. edit .env file
    • AUTH0-DOMAIN: go to Applications > Applications > your application > Domain
    • AUTH0-CLIENT-ID: go to Applications > Applications > your application > Client ID
    • AUTH0-AUDIENCE: go to Applications > APIs > your server > Identifier

Sources

more info: auth0 developers documantation

auth0-springboot-security's People

Contributors

errixed avatar

Watchers

 avatar

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.