oauth2 client and auth-server
Status: IN PROGRESS (oauth2-auth-server)
rm -rf oauth2-auth-server/src/main/resources/.oauth2.keystore
keytool -genkey -noprompt -alias oauth2-app -storetype PKCS12 -keyalg RSA -keysize 4096 -validity 3650 \
-dname "CN=oauth2-auth-server-127-0-0-1.nip.io, OU=TEST, O=DAGGEROK, L=Odessa, S=OD, C=UA" \
-storepass .oauth2.keystore.password -keypass .oauth2.keystore.password \
-keystore oauth2-auth-server/src/main/resources/.oauth2.keystore
./mvnw clean resources:resources package
java -jar oauth2-auth-server/target/*.jar &
java -jar oauth2-client/target/*.jar &
# wait for ports: 8000, 8080
- open in your browser: http://127.0.0.1:8080/
- it will redirect you to: http://oauth2-auth-server-127-0-0-1.nip.io:8000/login
- enter
max / passwd
aslogin / password
- it will redirect you back to http://127.0.0.1:8080/oauth/authorize
- click Approve ....and that shit doesn't work...
- https://www.youtube.com/watch?v=gSUeGi4sLlA
- https://www.youtube.com/watch?v=EoK5a99Bmjc
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Security
- OAuth2 Resource Server
- Securing a Web Application
- Spring Boot and OAuth2
- Authenticating a User with LDAP
- Spring Web
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring