دعم الموقع

Hi,

Authentication Steps Do you have an example on how to perform Step 2 for a native Android application.

Validate Request Token Why is this discouraged ?

  • Salil.

6 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Hi Salil,

I do not have an example of it in Android, no. The username & password method is discouraged because it's fairly insecure, even over SSL.

What parts about the proper flow are you having problems with?

Hi Travis,

I am facing problems with the second step. I need to get the result back to my app to proceed to Step 3. The redirect_to could be any string or does it need to be in the proper http://.... format ?

This is how my URL looks like - https://www.themoviedb.org/authenticate/myrequestoken?redirect_to=myappname.

After I click on "Allow" I get a "Oops! -We cant find the page you're looking for." error.

  • Salil.

The redirect_to param needs a full web address (starting with http), it's not designed to redirect to a local app.

How does Android handle internal links to local apps? I am not familiar with this at all but if there's local app URL schemes that we could tap into, like yourappname:// or whatever, that would be something I can add support for.

Hi Travis,

I was able to make it work by using the HTTP scheme. ( http://myappname ) When it gets redirected Android shows a chooser dialog ,Browser apps and my app, cause it finds multiple applications to handle the HTTP scheme. I haven't found a way to force Android to let only my application handle this. If the user chooses any browser app, it anyway will not be able to resolve the URI. I am not sure if its a good or a bad user experience but right now I can proceed with the HTTP scheme.

Android can handle custom URL schemes.If needed we could try something like tmdb:// or something that is not specific to an application name.

  • Salil.

Happy to hear you sorted it out. I don't think I want to encourage people use tmdb:// because if we ever have an official app then that would probably be what we wanted to use but I was thinking more along the lines of letting the redirect_to param not require "http://" but rather, a value like "yourapp://".

Hello @salil.khanwalkar ,

I am currently stuck in redirect_to "https://www.themoviedb.org/authenticate/myrequestoken?redirect_to=myappname." part of my android app. How to force android web view to load back on MainActivity and also complete the Step 3: Create a session ID after authenticating. Could you provide some help?

Thanks.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول