Skip to content
Agentmart
Submit a tool

phoenix-authentication

Use when adding or changing Phoenix authentication, phx.gen.auth integration, LiveView session identity, or migration between current_user and Phoenix 1.8…

Skill by igmarin

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/igmarin-phoenix-authentication

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when adding or changing Phoenix authentication, phx.gen.auth integration, LiveView session identity, or migration between current_user and Phoenix 1.8 Scope.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/phoenix-authentication

What's inside

Skill name
phoenix-authentication
Description
Use when adding or changing Phoenix authentication, phx.gen.auth integration, LiveView session identity, or migration between current_user and Phoenix 1.8 Scope.
License
MIT
Metadata
user-invocable: true
Instructions
20 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Phoenix Authentication

Follow the generated authentication code and Phoenix version in the project. Keep authentication (who is signed in) separate from authorization (what that identity may do).

## Version path

- Phoenix 1.7 projects commonly store `user_token` in the session and derive `current_user` for request and LiveView assigns. Preserve this token-to-assign flow unless the task migrates it.
- Phoenix 1.8 projects may use a `Scope` struct. Follow the project's generated `current_scope` plumbing; do not mix both models in one request path without a migration plan.
- Confirm generator output and APIs against `mix.lock` and the checked-out source.

## Change flow

1. Trace router pipelines, session plugs, `on_mount`, generated user schema, and existing tests.
2. Keep password/session verification in the generated auth boundary. Add custom registration fields through a separate migration and explicit changeset allowlists.
3. Derive LiveView identity from the verified session. Never trust a client-supplied user ID or socket param as identity.
4. Test unauthenticated redirect, valid session, invalid session, registration validation, and the changed flow.

Keep authorization rules in policies or `phoenix-authorization-patterns`. Authentication changes require focused tests; schema or session changes need an explicit migration/compatibility checkpoint when they affect existing users.

From igmarin/elixir-phoenix-skills, MIT.

More from igmarin/elixir-phoenix-skills

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from igmarin

Cite this page

phoenix-authentication skill. Agent Mart. https://agentmart.dev/skills/igmarin-phoenix-authentication (last updated 2026-10-24)