Device Authorization Flow #39437
Unanswered
lufagovi
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
My current goal is to develop a VR application using Supabase as the backend.
I've already built a companion web/mobile application and now need a simple authentication method, since typing in VR is very tedious.
Question
Is it possible to implement a device authentication flow (something like the OAuth2 Device Code Flow/Device Authorization Grant) using Deno/Edge Functions?
Expected Flow
Technical Challenge
From what I can see, the main challenge is securely linking the web session with the device session — that is, authenticating a request received from the web app and then sending a valid Supabase access token (or similar credential) to the VR app for authenticated API calls.
I’m also curious why this type of device authentication flow hasn’t been implemented yet as there so many ways to authenticate already ready to use.
It’s widely used in TV and console applications and would be equally suitable for VR headsets and other limited-input devices.
Thank you in advance for any guidance or suggestion
All reactions