You are viewing limited content. For full access, please sign in.

Question

Question

API Server swagger Unauthorized

asked on February 14, 2023 Show version history

Hello community,

On the API Server swagger page we are following the steps:

1.- Using the Token api call to generate an access token
2.- Clicking the authorize button at the top right and supplying the access token

but we get the following error

 

 

 

Any thoughts?

0 0

Replies

replied on February 14, 2023

Hi,

In step 1 when you used the Token api call to generate an access token, can you confirm that you've followed the steps in the guide for getting an access token for a service app?

https://developer.laserfiche.com/guides/guide_oauth-service.html

By following the guide, were you able to successfully use the oauth Token API and get an access token from the Token API response? (https://signin.laserfiche.com/oauth/swagger/index.html#/Token/Token_GetAccessToken )

 

To verify the access token is valid, are you able to decode the access token? This can be done by pasting it here https://jwt.io/. If you are able to successfully decode the access token, you should be able to see in the payload data information about your oauth application.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.