Android SDK - Client_id unauthorized
回答済みHello there,
I'm testing the Android SDK with the "box-content-sample" provided on GitHub.
I placed the Client_id and Client_Secret (taken from Box app panel) in the code.
I also authorized this ClientId in the Admin Console -> Custom Apps -> App Authorization.
Nevertheless I still receive the "The grant type is unauthorized for this client_id"!
Could you help me to understand what is still missing?
I don't know if it is relevant, but I also created a Public/Private Keypair (following the "Setup with JWT" guid) and included the JSON file in the Android project.
Thank you,
Max
-
The authorization_code grant type is only used for standard (non-JWT) OAuth2. If you would like more information on using JWT in a server implementation, I'd recommend taking a look at this issue from the Android SDK: https://github.com/box/box-android-sdk/issues/348
If you want to do a strictly Android SDK implementation, you will have an easier time changing to a different authentication type.
In the future, we will be working on re-release the Android SDK with full JWT support. -
Sorry, no answer, just wondering if you accomplished what you mentioned in your note? I'm also a novice, at least with Box, and asked for a simple example showing how to do this, but so far no one has responded. I would think it would take about 20 minutes to throw a sample together by someone more knowledgeable; authenticate, upload a file, download a file. I'm wondering if maybe Google Docs might be a better choice for my application, since there are so many more users, and hence more sample code. I'm also hampered by the lack of any Kotlin examples, but can handle the conversion from java if it's what I'm looking for. Right now, getting something to work for my application is similar to playing an adventure game.
Tom
サインインしてコメントを残してください。
コメント
3件のコメント