Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

 Before you begin, you must first set up the sample webapp. 

 

  1. Visit the URL http://localhost:8080/playground2/oauth2.jsp to start the application.
  2. Enter the following details and click Authorize.

    Access Token Endpoint: https://localhost:9443/oauth2/token

    ?tenantDomain=wso2.com
    Panel
    bgColor#F0F0F0
    borderStylesolid

    If you have configured the service provider in a tenant, you have to add the tenant domain as a query parameter to the access token endpoint.

    If the tenant domain is wso2.com, access token endpoint will be as follows.

    panel

    Authorization Grant Type: Client Credentials
    Client ID: (the client id received at the application registration)
    Client Secret: (client secret received at the application registration)
    Authorize Endpoint: https://localhost:9443/oauth2/authorize

    Info


    titleBGColor#F0F0F0
    borderStylesolid
     

  3. At this point the application receives the Access Token.
    5.png
  4. Click on Get Photos.
  5. Now you should be able to see the user photos.
    6.png