Try to get authentication token in in-app mobile browser shows an error
I was trying to getting the access token by following the "Service API Sample Codes" in https://developers.worksmobile.com/jp/document/1002003
I have set a bot persistent menu with a button having a link to https://server.host/somelink where it tries to get the access token by redirecting to URL like as follows: https://auth.worksmobile.com/oauth/authorize?response_type=code&client_id=service_key_here&redirect_uri=https://server.host/save-token&domain=dev.sprasia.com
When using the LINEWORKS desktop client, I will be redirected to the LINEWORKS login page where it will immediately redirect to the specified redirect_uri since I'm already logged in and I can save the access token. This is the expected result.
However, when I open the same using the iOS application, I get the error page like as follows: https://imgur.com/a/oX1jR
My domain is dev.sprasia.com.
コメント3
업데이트 된 답글입니다.
LINE WORKS 公式アカウント
Cuurent active Authorization Endpoint url is "https://auth.worksmobile.com/ba/{API ID}/service/authorize".
Could you retry that using the active url?
You can get "API ID" through Developer Console.
2018.02.01
업데이트 된 답글입니다.
TandinganWillie Loyd 投稿者
https://auth.worksmobile.com/ba/api_id/service/authorize?response_type=code&client_id=service_key&redirect_uri=the_redirect_url&domain=dev.sprasia.com
2018.02.01
업데이트 된 답글입니다.
TandinganWillie Loyd 投稿者
There may be something in the in-app browser that causes this error to occur,
2018.02.01
まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。