Is there a method to verify accesstoken?
AnsweredHello,
I am new to box. Working only with .python sdk.
Reference‘ https://developer.box.com/guides/applications/ ’, I've made a 'box application'. App type is' custom app 'and authentication method is' OAuth 2.0 (user or client authentication)'.
After obtaining the access token, i want to call the API with the access token.
Example of accesstoken 'g8dsgqybnjjjujchwk5etpr1tccca7g0f'.
About accesstoken, do you have a method to verify accesstoken?
We want to confirm the correctness of the accesstoken first, and then call the box API.
Thanks.
-
Official comment
Hello,
I'm a bit confused by your question.... what do you mean by verify the correctness of the token? Do you mean if the token works? Calling any of the API endpoints with the token should let you see if the token works... You could also refresh the token with the first access token's refresh token.
Thanks,
Alex, Box Developer Advocate
Comment actions -
Thank you for your reply.
>Do you mean if the token works?
yes.>Calling any of the API endpoints with the token should let you see if the token works... You could also refresh the token with the first access token's refresh token
ok.but,I want to confirm whether the box has an API to verify whether the token can be used?
Because we developed Google projects before,
Google has an API to verify whether a token is used:‘ https://www.googleapis.com/oauth2/v3/tokeninfo?access_token= ’,
so I want to confirm whether the API of box has an API to verify whether the token can be used?
Please sign in to leave a comment.
Comments
3 comments