# sso-auth **Repository Path**: robinjane/sso-auth ## Basic Information - **Project Name**: sso-auth - **Description**: Single Sign On Authentication Server with Spring OAuth2 and MongoDB - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-22 - **Last Updated**: 2021-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/malike/sso-auth.svg?branch=master)](https://travis-ci.org/malike/sso-auth) # sso-auth From [Using Spring Security OAuth 2.0 and MongoDB For Single Sign Authentication Server](http://malike.github.io/Spring-Security-OAuth2/) I explained how I chose OAuth 2.0 and MongoDB to build a Single Sign On Auth server that can be used in a microservice architecture. *1.* First step. Run sso-auth-client application. And try accessing [http://localhost:8081/hello](http://localhost:8081/hello). Without passing any headers it returns this ![No Security Token](hello_no_token.png "sso-auth-client") *2.* Second step. Run sso-auth-server. Lets use the ***password*** **grant_type** to get an access token. [http://localhost:8080/oauth/token?grant_type=password&username=user@awesome.com&password=cant_hack_this&client_id=sso-auth-client&client_secret=mySecret](http://localhost:8080/oauth/token?grant_type=password&username=user@awesome.com&password=cant_hack_this&client_id=sso-auth-client&client_secret=mySecret) ![Get Access Token](oauth_login.png "sso-auth-server") *3.* Final step. Lets access [http://localhost:8081/hello](http://localhost:8081/hello) with our access token. And we are in. ![Security Token](hello_token.png "sso-auth-client").