feat: Support direct access token auth, auto device discovery, and du…#6
Open
veerkak wants to merge 1 commit into
Open
feat: Support direct access token auth, auto device discovery, and du…#6veerkak wants to merge 1 commit into
veerkak wants to merge 1 commit into
Conversation
anishamalde
reviewed
May 12, 2026
|
|
||
| The app supports two authentication modes. Choose one — do not set both. | ||
|
|
||
| ### Option 1: If you have an Access Token |
There was a problem hiding this comment.
Lets include the docs link to show where to get these tokens & why you would use one or the other?
anishamalde
reviewed
May 12, 2026
|
|
||
| Open [http://localhost:3000](http://localhost:3000) in your browser. | ||
|
|
||
| ## Authentication |
There was a problem hiding this comment.
Devs would still need all the back end urls right to get the token right?
Can we make this clearer / provide an easy way for them to simulate this?
Author
There was a problem hiding this comment.
No need of this set-up with Playground feature READ.ME latest should cover this.
anishamalde
reviewed
May 12, 2026
| RING_CLIENT_SECRET=your_client_secret_here | ||
|
|
||
| # Ring Device | ||
| NEXT_PUBLIC_RING_DEVICE_ID=your_device_id_here |
There was a problem hiding this comment.
Can we include doc links on where these would be received from?
Author
There was a problem hiding this comment.
Done included Playground Link for clarity.
anishamalde
requested changes
May 12, 2026
aa70193 to
d0c20a9
Compare
… API scripts, and dual UI modes - Add RING_ACCESS_TOKEN support (direct token, no client credentials needed) - Preserve existing RING_REFRESH_TOKEN flow (requires client_id + client_secret) - Error if both are set simultaneously - Auto-discover devices via GET /v1/devices when NEXT_PUBLIC_RING_DEVICE_ID not set - Access token mode ignores NEXT_PUBLIC_RING_DEVICE_ID (always auto-discovers) - Stream route accepts deviceId from frontend (after discovery) - Simplified live-view-only UI in access token mode - Full dashboard (events, processors, webhooks) in refresh token mode - Add /api/ring/config endpoint for frontend auth mode detection - Add scripts/ folder with 8 Python scripts for calling Ring APIs - Each script is standalone, prints curl equivalent, auto-discovers device - Interactive explore_apis.py menu for trying all APIs - Comprehensive README restructured for first-time users (Step 1/2/3) - Doc links for tokens, credentials, and device IDs throughout - .env.example updated with doc links for all values
d0c20a9 to
3aa4b70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.