Layer7 API Management

  • 1.  Retrieve Username using oauth password grant type

    Posted May 03, 2018 02:19 PM

    Hi,

     

    Is there a way to get the username for which the oauth token was issued during token validation?my usecase is to generate a JWT where subject should be username if oauth token is valid.

     

    Regards,

    Sonalee



  • 2.  Re: Retrieve Username using oauth password grant type
    Best Answer

    Posted May 07, 2018 05:03 AM

    The assertion for OTK Require OAuth 2.0 Token will return the variable 'session.subscriber_id'.

    I think this is a representation of the resource owner/username.