auth-identity
БесплатноБез исполняемых скриптовНе проверенSet up MediaCMS authentication beyond local accounts — django-allauth email/password flows, Identity Providers (admin-managed providers with role, group, and…
от greedychipmunk★ 24 звезды на GitHubОб этом скилле
MediaCMS Auth and Identity Providers
Scope: targets mediacms-io/mediacms v9.6.1 (commit
99a1801, branchmain). Apps:identity_providers/,saml_auth/,lti/; docs:docs/saml_entraid_setup.md,docs/moodle_plugin.md.
Layers
- Local accounts — django-allauth (
/accounts/...): email/password, email verification, login attempts rate limit, approval workflow (see skillportal-configurationfor the settings) - Identity Providers (
USE_IDENTITY_PROVIDERS = True) — Django-admin-managed providers; SAML ships out of the box, any allauth provider can be added; stores login-option lists and SAML response logs - SAML (
USE_SAML = True) — SSO with role/group/category mapping into MediaCMS - LTI 1.3 (
USE_LTI = True) — LMS embedding (Moodle plugin inlms-plugins/mediacms-moodle)
Enabling SAML
local_settings.py:
USE_RBAC = True
USE_SAML = True
USE_IDENTITY_PROVIDERS = True
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_SSL_REDIRECT = True
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
SOCIALACCOUNT_ADAPTER = 'saml_auth.adapter.SAMLAccountAdapter'
SOCIALACCOUNT_PROVIDERS = {
"saml": {
"provider_class": "saml_auth.custom.provider.CustomSAMLProvider",
}
}
Restart web, celery_worker, celery_beat. SP metadata is auto-generated at /saml/metadata.
Configure the provider (Django admin)
Step 1 — Identity Provider entry: provider saml, provider ID, IDP config name, client ID (the login identifier shared with the IDP), default site.
Step 2 — SAML Configuration: IDP ID (must be a URL), IDP certificate (x509), SSO URL, SLO URL, SP metadata URL (e.g. https://{portal}/saml/metadata), optional SP certificate + SP private key (PEM) for signed/encrypted communication — if one is set, both must be.
Step 3 — Options:
verified_email— mark SAML emails as verified- Remove from groups — sync group removals from the IDP
- Global role mapping — SAML role → MediaCMS role
- Group role mapping — SAML role → role within mapped groups
- Group mapping — SAML group ids → MediaCMS groups
- Category mapping — SAML group id → MediaCMS category (RBAC)
Identity Providers app
With USE_IDENTITY_PROVIDERS = True, the admin gains an "Identity Providers" tab: add providers, set mappings, define which login options appear on the login page (system login, IDP login), and browse saved SAML response logs after each authentication. Response attributes like role or groups map to MediaCMS roles (advanced user, editor, manager, admin) and RBAC groups.
LTI 1.3 / Moodle
USE_LTI = Trueenables thelti/app (adapters, deep linking, handlers)- Moodle plugin source:
lms-plugins/mediacms-moodle; setup guide:docs/moodle_plugin.md - LTI embeds mark media shared via
POST /api/v1/media/{token}/shareand can link an RBAC category bycourseid
Troubleshooting
| Symptom | Fix |
|---|---|
| Redirect loops | USE_X_FORWARDED_HOST + SECURE_PROXY_SSL_HEADER must match the proxy setup |
| Metadata 404 | USE_SAML not enabled — /saml/metadata route is conditional |
| Assertions rejected | SP certificate/private key pair incomplete, or IDP certificate mismatch |
| Roles not applied | Check the SAML Configuration's role/group mappings; inspect the saved response log |
| Login options missing | Identity Provider entry's site must be the default site |
Additional resources
- references/saml-setup.md
docs/saml_entraid_setup.md(full Entra ID walkthrough, usable as reference for other IDPs)- Skills:
rbac-permissions(what mapped roles mean),portal-configuration(account settings)
Установить auth-identity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл auth-identity?
Set up MediaCMS authentication beyond local accounts — django-allauth email/password flows, Identity Providers (admin-managed providers with role, group, and category mappings), SAML single sign-on including SP metadata, certificates, and Entra ID, and LTI 1.3 integration with Moodle. Use when configuring SSO, mapping identity-provider roles to MediaCMS roles or RBAC groups, debugging login flows, or enabling LMS embedding.
Как установить скилл auth-identity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл auth-identity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic