Skip to content

refactor(auth): use provider endpoint directly instead of campus oauth proxy#14

Merged
nycomp merged 2 commits intomainfrom
refactor/campus-oauth-flow
Apr 6, 2026
Merged

refactor(auth): use provider endpoint directly instead of campus oauth proxy#14
nycomp merged 2 commits intomainfrom
refactor/campus-oauth-flow

Conversation

@nycomp
Copy link
Copy Markdown
Contributor

@nycomp nycomp commented Apr 6, 2026

Summary

  • Use app's own callback URL as redirect_uri instead of proxy callback
  • Use /auth/v1/authorize provider endpoint directly instead of /campus/authorize proxy
  • Remove unnecessary target parameter from authorization URL

Background

The campus oauth proxy pattern doesn't make sense for cross-domain deployments. The provider's /authorize endpoint handles the OAuth flow and redirects directly to the app's callback, making the proxy layer unnecessary.

This aligns with nyjc-computing/campus#414 which removes the campus oauth proxy.

Changes

  • AuthRoot.authorize(): Use target directly as redirect_uri
  • Use provider endpoint authorize instead of campus/authorize
  • Remove target query parameter from authorization URL

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

ngjunsiang and others added 2 commits April 6, 2026 10:47
…h proxy

- Use app's own callback URL as redirect_uri instead of proxy callback
- Use /auth/v1/authorize provider endpoint directly instead of /campus/authorize proxy
- Remove unnecessary target parameter from authorization URL

The campus oauth proxy pattern doesn't make sense for cross-domain deployments
since the provider's /authorize endpoint handles the flow and redirects directly
to the app's callback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nycomp nycomp merged commit 294efd3 into main Apr 6, 2026
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