GithubHelp home page GithubHelp logo

shotishu / spring-security-oauth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baeldung/spring-security-oauth

0.0 2.0 0.0 289 KB

Learn more about OAuth2 via "Learn Spring Security":

Home Page: http://bit.ly/github-lss

License: MIT License

Java 73.26% HTML 13.01% TypeScript 13.72%

spring-security-oauth's Introduction

Spring Security OAuth

If you're already a student of Learn Spring Security, you can get started diving deeper into OAuth2 with Module 10, and then Modules 12, 13, and the upcoming module 17.

If you're not yet a student, you can get access to the course here: http://bit.ly/github-lss


Build the Project

mvn clean install

Projects/Modules

This project contains a number of modules, but here are the main ones you should focus on and run:

  • spring-security-oauth-server - the Authorization Server (port = 8081)
  • spring-security-oauth-resource - the Resource Server (port = 8082)

And, depending on what grant type you want to try out, you'll work with one of these UI/Clients:

  • angularjs/spring-security-oauth-ui-implicit (port = 8083)
  • angularjs/spring-security-oauth-ui-password (port = 8084)

Other Modules:

  • spring-security-5-oauth-resource - another version of the Resource Server
  • spring-security-oauth-ui-implicit-angular4 - another version of the Implicit Grant UI Module - using Angular 4
  • spring-security-oauth-ui-password-angular4 - another version of the Password Grant UI Module - using Angular 4

Finally, you can ignore all other modules.

Run the Modules

You can run any sub-module using command line:

mvn spring-boot:run

If you're using Spring STS, you can also import them and run them directly, via the Boot Dashboard

You can then access the UI application - for example the module using the Password Grant - like this: http://localhost:8084/

Run the Angular 4 Modules

  • To run any of Angular4 front-end modules (spring-security-oauth-ui-implicit-angular4 and spring-security-oauth-ui-password-angular4) , we need to build the app first:
mvn clean install
  • Then we need to navigate to our Angular app directory:
cd src/main/resources

And run the command to download the dependencies:

npm install
  • Finally, we will start our app:
npm start
  • Note: Angular4 modules are commented out because these don't build on Jenkins as they need npm installed, but they build properly locally
  • Note for Angular version < 4.3.0: You should comment out the HttpClient and HttpClientModule import in app.module and app.service.ts. These version rely on the HttpModule.

Relevant Articles:

spring-security-oauth's People

Contributors

doha2012 avatar lor6 avatar kevingilmore avatar maibin avatar pivovarit avatar lcrusoveanu-optaros avatar mmonik avatar cody756 avatar vonunige avatar xustyx avatar vithubati avatar

Watchers

James Cloos avatar shotishu 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.