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

Question

Question

Where am I going wrong logging into Swagger?

asked on October 17

I am creating a long lasting authorization key, because I don't want to use basic auth.

I put my generated key into the OAuth Access Token for the swagger playground Authorization

The lock closes

But if I try to run any methods I get informed

0 0

Answer

SELECTED ANSWER
replied on October 20 Show version history
  • Using the Laserfiche Developer Console create and download a long-lasting 'Authorization Key' for your service app.
  • From the downloaded "xxxAuthorizationKey.json" file, copy the value of "authorizationKey"
  • Click the Authorize button paste the authorizationKey into the Authorization field.
  • Then get a new Access Token
  • A successful response looks like this:
0 0
replied on October 21 Show version history

Once you have the new access token you go back to the authorization lock and replace the access token? I was thinking the long lasting authorization token gave us direct access without having to do the redundant step of asking for a temporary one.

Maybe we will just use basic auth for swagger then and a long lasting token for the actual app.

Edit: Ok I confirmed it works, but easier to stick with basic auth while testing in swagger so we don't have to jump between 2 systems and generate a new password every time. Then use the long lasting key in the final app. Thanks for the explanation.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.