Recommended auth flow for third-party browser-based account linking? #53
Replies: 2 comments 6 replies
|
Hi! Sorry for taking so long to get to this - we were actively thinking through it. I think the tl;dr is - anything browser-based should happen on a companion device (desktop or smartphone) for now. We set that precedent with the dashboard and it's simplest for everyone to keep it that way. So to answer your questions:
Nothing yet, but we will!
not exactly, we think you should be able to launch the url on a nearby device as smoothly as possible. For now, we recommend putting
Not the cloud-based dashboard, but we're going to be releasing our File Manager soon, which will behave kind of like a dashboard over your local network. So you can upload/download/change configuration directly over WiFi. I talk about it a bit more in my announcement from last week.
Totally! We're also thinking about how we could make something like OAuth work directly the http server that's going to be running on the device to host the File Manager. We're thinking it could be like: Tool puts up QR code for Oauth -> User scans on their webcam and authenticates on the computer -> the baked in callback url for OAuth points to the local IP address of the phone so the token gets passed directly to the file manager, and dropped into the tool's private inbox. We're gonna test it out. |
|
Hey, just thought I'd let you know I'm also looking to build a plex audio player - basically looking to replicate basic plexamp functionality in lightOS. I'm not a mobile developer (I've been doing web dev for a decade) but I'm getting up to speed. Maybe between those of us interested in Plex audio playback we can collaborate on a tool to get this working. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Light team,
I’m experimenting with the SDK and exploring a Plex audiobook Tool for Light Phone III.
The intended user experience is very Light-like:
The main thing I’m trying to understand is the recommended SDK pattern for third-party account authentication.
Plex uses a browser-based PIN / OAuth-like flow:
plex.tvapp.plex.tv/authIn a normal Android app, I’d launch the browser with an
ACTION_VIEWintent. But from what I can see, the current Light SDK intentionally blocks directIntent/startActivityaccess from Tool code.So my questions are:
I’m not trying to bypass the Light constraints. I’m trying to fit into them cleanly. For this use case, Dashboard-based setup would actually be ideal if the SDK supports it: the user connects Plex on a computer, then the phone just gets the minimum config it needs to browse/listen.
Thanks. The SDK is exciting, and this kind of guidance would help a lot for Tools that integrate with existing services.
All reactions