box api - Do I need authorization code each time for accessing user box account? -
i developing desktop app interact box enterprise account.
for first time when app try access admin enterprise account redirected box page . box redirects user redirected url after accepting admin user credentials. redirected url have authorization code. used access , refresh token.
my question can save authorization code future use. ??
say after 1 month app again wants access admin enterprise account again need go through above steps of getting auth code.??
alok, yes, can save access , refresh tokens future use. things note:
- the access token must included via authorization header on every request api.
- an access token expires after 1 hour. can use refresh token request new access/refresh token pair.
- a refresh token expires after
1460 days. if application needs performmonthlyprocess less that, you'll need create scheduled task or chron job refresh access/refresh token pair in interim. task/job in place can refresh tokens indefinitely. - if both access , refresh tokens have expired, user must manually authenticate application again.
Comments
Post a Comment