Skip to content

Integrate shared GitHub authentication across team repo and projects panel - #24

Merged
ModelEarth merged 1 commit into
ModelEarth:mainfrom
shashank11yadav:main
Nov 2, 2025
Merged

ModelEarth merged 1 commit into
ModelEarth:mainfrom
shashank11yadav:main

Conversation

@shashank11yadav

Copy link
Copy Markdown
Contributor

View changes here - https://shashank11yadav.github.io/team/projects/#list=modelteam

Summary

Implements unified GitHub token authentication by reusing the Projects Hub widget, enabling single
sign-on across all ModelEarth tools.

Changes

  • Team Index: Include Projects Hub issues.js widget in minimal auth-only mode
  • Projects Repos Panel: Update token storage to check localStorage first (shared), then
    sessionStorage (fallback)
  • Token Persistence: Tokens now survive browser restarts and work across all tabs
  • UI Enhancement: Hide non-auth widget elements with CSS for clean display

Benefits

  • ✅ Single sign-on: Enter token once, works everywhere
  • ✅ Shared storage: Projects Hub ↔ Team repo ↔ Repos panel
  • ✅ Better rate limits: 5,000 requests/hour (vs 60 without token)
  • ✅ Persistent auth: Token survives browser restarts
  • ✅ Code reuse: Leverages proven Projects Hub implementation

Files Modified

  • index.html (+84 lines) - Widget integration and auth UI
  • projects/index.html (+36/-18 lines) - localStorage token sharing

Testing

  • Token saves and persists across browser restarts
  • Token shared between Projects Hub and Team repo
  • Repos panel detects shared token automatically
  • Rate limit benefits apply (5,000/hour)
  • Backward compatible with sessionStorage

Changes:
- Include Projects Hub issues.js widget for unified GitHub auth
- Add minimal auth UI to team index page header
- Update projects Repos panel to check localStorage first for shared token
- Token now persists across browser restarts and shared between pages
- Hide non-auth widget elements with CSS for minimal display
- Improve token sharing between Projects Hub, Team repo, and Repos panel

This enables single sign-on experience where users enter GitHub token once
and it works across all ModelEarth tools with 5,000 requests/hour rate limit.
@ModelEarth
ModelEarth merged commit 3c1fac2 into ModelEarth:main Nov 2, 2025
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