Forum Discussion

CV's avatar
CV
Occasional Contributor
6 years ago

OAuth 2.0

I am trying to test OAuth using SOAP UI. The grant type-Client Credetials and resource owner password options work fine but when i try to change it to Authorization code or implict, I get Page could not be loaded issue. I think i do not have correct redirect URI that is having issue getting the access token from the authorization server. what URI should I use?

  • avidCoder's avatar
    avidCoder
    Super Contributor

    For grant_type = Implicit and Authorization code, please try to use this

    accessToken url - https://developers.google.com/oauthplayground/

    client_id - 8819981768.apps.googleusercontent.com&

    client_secret - {client_secret}&

     

    This is google oauth playground

     

    Hope, it works for you. If you like the answer don't forget to accept as solution.

    • CV's avatar
      CV
      Occasional Contributor

      i am getting error using this URL. Invalid OAuth 2 parameters: https://developers.google.com/oauthplayground is not a valid Redirect URI.

       

      Do you want me to use 8819981768.apps.googleusercontent.com& as client id?? Client id and secret are  automatically generated.

       

      • avidCoder's avatar
        avidCoder
        Super Contributor

        I used the same authtoken url with client id and cliet secret in Postman. And it worked for me.