Running the application:
- Visit the URL http://localhost:8080/playground2/oauth2.jsp to start the application.
Enter the following details and click Authorize.
Authorization Grant Type: Implicit
Client ID: (the client id received at the application registration)
Callback URL: http://localhost:8080/playground/oauth2client
Authorize Endpoint: https://localhost:9443/oauth2/authorize- Log in with the user.
- Click Approve to consent to this action.
- At this point the application receives the Access Token.
- Click on Get Photos.
Now you should be able to see the user photos.