Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Created September 3, 2025 17:58
Show Gist options
  • Save mostlygeek/ee3822440bb82b05003256e2121e59a5 to your computer and use it in GitHub Desktop.
Save mostlygeek/ee3822440bb82b05003256e2121e59a5 to your computer and use it in GitHub Desktop.
refactor pkg layout
tsidp/
├── tsidp.go
├── internal/
│ ├── app/ // Core application logic and the idpServer struct.
│ ├── crypto/ // Key generation, signing, and management.
│ ├── handlers/ // All HTTP handlers and routing setup.
│ ├── oidc/ // OIDC/OAuth2 specific types and metadata logic.
│ ├── pkce/ // Self-contained PKCE validation logic.
│ └── store/ // Data persistence for clients and tokens.
└── ui/ // (Future) Stub for HTML/CSS/JS assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment