Skip to content

feat: delegate subscription checks to jprq-web - #294

Merged
azimjohn merged 7 commits into
azimjohn:masterfrom
mabrur-h:feature/obtain-token-for-macapp
Apr 29, 2026
Merged

feat: delegate subscription checks to jprq-web#294
azimjohn merged 7 commits into
azimjohn:masterfrom
mabrur-h:feature/obtain-token-for-macapp

Conversation

@mabrur-h

Copy link
Copy Markdown
Collaborator

Authenticator now consults jprq-web's /api/auth/validate after the GitHub identity step: if the user has an active subscription there, user.Allowed is set to true (with tier info), letting the existing tunnel server check pass. The 42.uz fallback is preserved for legacy identities — calls that already returned Allowed=true skip the extra hop.

The website's auto-allow file write is removed: jprq-web is the new source of truth for desktop users, so /etc/jprq/allowed-users.csv is no longer touched by the OAuth callback. The file-load path in the tunnel server stays as-is for legacy CLI users until that side is also migrated.

Wired via two new env vars on the tunnel server:
JPRQ_WEB_URL — base URL of jprq-web
JPRQ_INTERNAL_TOKEN — shared secret (Bearer) for the internal validate endpoint

@azimjohn
azimjohn merged commit 1c097fd into azimjohn:master Apr 29, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants