Giter VIP home page Giter VIP logo

fusionauth-example-spring-security's Introduction

FusionAuth Spring Security Example

A quick and easy example of how to use OpenId Connect to integrate a spring application with FusionAuth.

DEPRECATED

This repository is no longer maintained. For a modern example of integrating Spring and FusionAuth, please see https://github.com/FusionAuth/fusionauth-example-java-spring

DEPRECATED

Usage

  1. Download and install FusionAuth
  2. Create an Application
    1. While you are creating an application, create two roles user and admin
    2. Add a valid redirect URL to your OAuth configuration. For this example use http://localhost:8081/login.
    3. Add http://localhost:8081/logout as the logout url.
    4. Click save (blue icon at the top right)
  3. Copy application-example.properties to application.properties
  4. Copy your Client id and Client secret from the Application configuration into application.properties under the fusionAuth.clientId and fusionAuth.clientSecret properties (respectively).
  5. Copy your FusionAuth Application ID into fusionAuth.applicationId
  6. Modify the existing localhost:9011 urls to be the location of your fusion auth instance if it is not running locally.
  7. Start the example with mvn spring-boot:run and navigate to http://localhost:8081

For an in depth explanation and tutorial checkout our blog.

License

Some portions of this code were forked/based on the code available here: https://github.com/eugenp/tutorials which are licensed under MIT. The full license is available under LICENSE.

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.