deeleeramone/pywry/authentication
Claude Code and agent skill by deeleeramone/pywry
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install deeleeramone/pywry/authenticationSKILL.md
Authentication & OAuth2
Add OAuth2 authentication to PyWry apps — Google, GitHub, Microsoft, or any OIDC provider.
Two Modes
Native Mode (Desktop)
Opens a dedicated auth window → user logs in at provider → callback captured on ephemeral localhost server → tokens returned.
Deploy Mode (Production)
Auth routes mounted automatically when auth_enabled=True and oauth2 settings are configured.
Routes: GET /auth/login, GET /auth/callback, POST /auth/refresh, POST /auth/logout, GET /auth/status, GET /auth/userinfo
Configuration
Environment Variables
TOML Configuration
Provider Setup
GitHub
Microsoft (Azure AD)
Custom OIDC
Frontend Auth State
When authenticated, window.__PYWRY_AUTH__ is set with { user_id, roles, token_type }.
Token Storage Backends
| Backend | Use Case | Persistence | |
|---|---|---|---|
memory | Development, single-process | None (lost on restart) | |
keyring | Native desktop apps | OS credential manager | |
redis | Deploy mode, multi-worker | Redis with TTL |
Install keyring support: pip install pywry[auth]
Security Notes
- PKCE is enabled by default (public client best practice)
- CSRF protection via
stateparameter validation - Tokens are never injected into HTML — passed via secure cookies or IPC
- Session cookies are
HttpOnly,Secure,SameSite=Lax - Background token refresh happens automatically before expiry
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpywry/pywry/mcp/skills/authentication/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 7
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/deeleeramone/pywry/authentication)