Code Monkey home page Code Monkey logo

simple-springboot-project's Introduction

Simple SpringBoot Project

Spring Boot + PostgreSQL + Auth0

Used code and links

Load database from dump file

psql -h localhost -p 7301 -U postgres -f app_data.backup postgres

Auth0 setup

  1. Create Auth0 account.
  2. Add domain, client id and secret to application.properties:
# Auth0 settings
com.auth0.domain=[FIX_ME]
com.auth0.clientId=[FIX_ME]
com.auth0.clientSecret=[FIX_ME]
  1. (Optional) Auth0 enables also to use Custom Database. Please find more information: Authenticate Users using a Custom Database.
  2. JSON that will be returned from Auth0. "Sub" is unique id of user:
{
    "sub": "auth0|5a4bc949ebc33d03b8b2639d",
    "nickname": "test",
    "name": "[email protected]",
    "picture": "https://s.gravatar.com/avatar/662e5c603f4fa638abed0eed9650bd60?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fda.png",
    "updated_at": "2018-01-09T23:02:49.937Z",
    "email": "[email protected]",
    "email_verified": true
}

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.