Getting an OAuth access token for testing purposes Follow

Comments

6 comments

  • Avatar
    vitaliy.bondar.tvorovskiy

    Is there a way to create token using this endpoint for a non-admin user?

  • Avatar
    Brian Manning

    @vitaliy - The token creation endpoint is only available to admins. If you have questions on the authentication flow for an app or service you're working on feel free to open up a ticket and we'll assist. Cheers!

  • Avatar
    Chris Nicholson-Doyle

    The most well written and simple to follow Zendesk article I have read. Great work!

  • Avatar
    Jessie Schutz

    Thanks, Chris! I'm glad you found it useful. :)

  • Avatar
    Karl Kerem

    The user interface has changed for creating an OAuth token, there's no link anymore to get the client ID via the link. Also, the List Clients endpoint of the OAuth Client API doesn't list our newly created OAuth client.

    What are the new steps for finding out OAuth client ID so that we could create a new token for it with desired scope?

  • Avatar
    Bryan Flynn

    Hi Karl -- looks like you're talking about wanting to grab the OAuth Client's internal ID value from the UI -- agreed, it doesn't look like that ID value can be picked up in the UI -- sorry about that.

    However, the List Clients API call should be listing out all your OAuth Clients listed under Admin > Channels/API > OAuth Clients, along with their corresponding IDs (and just to be complete, creating a new token via the API is documented here - note that client_id is the numeric id of the OAuth client, not the client's identifier).

    If you're not seeing all your OAuth clients via the List Clients API, please do a hard refresh and make sure you're getting the latest. If you're still not getting all your OAuth clients listed, probably best to open a ticket via support@zendesk.com, so it can be investigated further.

    Please share any additional info or resolutions here. Thanks!

Please sign in to leave a comment.

Powered by Zendesk