Skip to content

This repository is a sample application, implementing Spring Rest Services with OAUTH 2.

Notifications You must be signed in to change notification settings

saurabh-ranu/ShareYourViewsServices

Repository files navigation

  1. To Create the Database execute shareyourviewsdb.sql scripts.

  2. URL to get the access and refresh token

    http://localhost:8080/ShareYourViewsServices/oauth/token?grant_type=password&username=1&password=saurabh

    Authorization : Basic Auth username : trusted-app password : secret

  3. To get the access token from refresh token

    http://localhost:8080/ShareYourViewsServices/oauth/token?grant_type=refresh_token&refresh_token=yourrefreshtoken

    Authorization : Basic Auth username : trusted-app password : secret

  4. To Access the Resource

    http://localhost:8080/ShareYourViewsServices/PostHandle/getAllPosts?access_token=youraccesstoken

About

This repository is a sample application, implementing Spring Rest Services with OAUTH 2.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages