Layer7 API Management

  • 1.  Access token exchange with auth code

    Posted Jun 27, 2018 08:00 PM

    Hi There,

    In essence,a web application(client) seeking oAuth Access token for a user login.Essentially they provide response_type=code and in exchange we(ssg) send Access token.I was presuming the encrypted Access token may contain the logged in userid(email) and the ask was, do we got to share the gateway public key with client to decrypt that access token which essentially sent  after authentication with the gateway?



  • 2.  Re: Access token exchange with auth code

    Broadcom Employee
    Posted Jun 28, 2018 10:29 AM

    The OTK Access token doesn't contain any information, it is a random uuid that is generated as a opaque token.



  • 3.  Re: Access token exchange with auth code

    Posted Jun 28, 2018 01:18 PM

    But how would return back the authenticated user attributes such as email and a phone number back to the caller web application and, am wondering if its random number wouldn't client application validate the the access token to ensure its issued from trusted authorization server?



  • 4.  Re: Access token exchange with auth code

    Broadcom Employee
    Posted Jun 28, 2018 03:11 PM

    That is not the function of the Access token. it sounds like you are looking for OpenID id_token. a id_token is a JWT that is signed by the gateway and contains claims about the token that can be verified. The id_token does not contain the username or email address either. but the id_token can be passed to the user info endpoint to obtain such information.



  • 5.  Re: Access token exchange with auth code

    Posted Jun 28, 2018 04:20 PM

    You are right am looking exactly what you though, would mind referring a document link here.



  • 6.  Re: Access token exchange with auth code

    Broadcom Employee
    Posted Jul 05, 2018 03:09 PM

    Hi Popleys, The blog post OAuth vs. LDAP vs. OpenID Connect would help clarifying your question.



  • 7.  Re: Access token exchange with auth code

    Posted Jul 24, 2018 09:40 AM

    Hi There,

    Generally what information the opaque string access_token may contain?



  • 8.  Re: Access token exchange with auth code

    Broadcom Employee
    Posted Jul 03, 2018 08:21 PM

    Dear Popleys ,

    Oauth assess token is only an opaque string. The token issuer is the only party that can relate the opaque string to meaningful information. ie. those meaningful info are actually stored by token issuer, you can only retrieve those info by calling the endpoint of the the token issuer.

     

    Regards,

    Mark



  • 9.  Re: Access token exchange with auth code

    Broadcom Employee
    Posted Dec 13, 2018 05:10 PM

    Good afternoon,

     

    Were you able to resolve the issue? What was the final result?

     

    Sincerely,


    Stephen Hughes
    Broadcom Support