LINE WORKS Developers

コミュニティ

LINE WORKSのテクニカルエキスパート及び開発者と
コードのサンプル、リソース、Tip等を共有し問題解決への相談が可能です。

??dev_메인_타이틀_모바일_ja_JP??

問い合わせ

Try to get authentication token in in-app mobile browser shows an error

画像

TandinganWillie Loyd

2018.02.01既読 162

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