Skip to content

mukhtiarahmed/auth-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring security oauth2 example

Prerequisites:

  • MySQL 5.7
  • JDK 1.8
  • Maven 3.*

Install and run the project

  1. download/clone the project
  2. prepare the database
  1. change to the root folder of the project and excute the following maven command
  • mvn spring-boot:run
  • now the REST api is up and running with tomcat 8 on localhost:8080
  1. Let's check if our authentication endpoint is working
    • curl -X POST http://localhost:8080/oauth/token -H 'authorization: Basic YnJvd3NlcjpzZWNyZXQ=' -F grant_type=password -F username=ahmed -F password=ahmed -F scope=trust

About

Spring security oauth2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages