After BOX Login, Permission Grant page coming every time
We are using BOX API to box user login. And after login, we need file access from users. All is working fine but we didn't understand why this permission needed every time.
If you see FB or Google App then they only ask the first time for permission and then after users only need to log in. That's it. But using BOX there is no way to stop redirecting users to Permission page.
We would this permission page only first-time login. From second time login, we don't want to redirect the users to permission page. We are storing client used for this. But we don't find any way for this.
Is there any way to achieve this using BOX API?
-
Hello there,
I think what you need to do is to "store" the authentication tokens (access/ refresh) in a persistent store like Registry, Keychain or even XML file etc. So, each time the user opens up the app, it gets the access token from the file and refresh it for fresh tokens and save the updated one on the store. I am not sure how you are "refreshing" the tokens now if you are not storing somewhere because after an hour, access tokens need to be refreshed anyway. My be you can provide some details on the kind of app you have.
Not sure, if this made sense in your context. But if it's a desktop app built with .NET,Java, Python etc, this can be done easily. If you do this then only time you need to go to permission page is when the token actually expires or is corrupted.
Hope this was helpful.
thanks,
Bibek
サインインしてコメントを残してください。
コメント
1件のコメント