Hello,
I m stuck at getting response from this url:
https://www.themoviedb.org/authenticate/request_token?redirect_to=http://www.google.com
as in Android we cant access header of webview & can i know why https://api.themoviedb.org/3/authentication/token/validate_with_login is strongly discouraged?
Please help ASAP
Thank you
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
Travis Bell님의 댓글
1월 16, 2018 at 1:27 오후
Hi @Faiyyaz17,
Validating with your login exposes your username and password over the air. Even though you can SSL, it's still not that secure since it's a GET method with query parameters.
There's no way to access the response headers from a webview?
Chris Krueger님의 댓글
1월 17, 2018 at 7:06 오전
You can access the response with WebView.
Build and load your auhorization URI. For example in version 3:
Instantiate WebView and set a WebViewClient. Handle your URI in shouldOverrideUrlLoading. You don't need a matcher if you have only one URI redirection. Check the approve parameter and handle the response request token.
I strongly recommend Chrome Custo mTab for auhentification. Chrome Custom Tabs give apps more control over their web experience, and make transitions between native and web content more seamless without having to resort to a WebView.
Here is a good explanation:
This GitHub project helps for your implemenation:
Another GitHub OAuth sample: