/redaxo-ycom:ycom-otpfrom redaxo-ycom
Guides setup of TOTP and email-based OTP for YCom (REDAXO). Covers configuration keys, enforcement modes, email templates, and injection-based session gating.
Ships in redaxo-ycom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
YCom supports two OTP methods: TOTP (authenticator apps like Google Authenticator) and email-delivered codes. Both share the same setup form and injection-based enforcement.
otp_article_id in YCom settings to point to an OTP setup article.ycom_auth_otp|setupotp_auth_enforce = all or disabled.otp_auth_option = all, totp_only, email_only.ycom_auth_otp|setup
That's it. The field renders the QR code (for TOTP), an email code option, and the verification step in one component.
| Key | Type | Description |
|---|---|---|
otp_article_id | int | OTP setup/verify article |
otp_auth_enforce | string | all or disabled |
otp_auth_option | string | all, totp_only, email_only |
otp_auth_email_period | int | OTP email-code period in seconds (300–1800) |
all enforcement means every user must complete OTP setup before they can access protected articles. disabled makes OTP optional (users can opt-in but no gating).
When otp_auth_option allows email_only or all, YCom sends OTP codes via the email template:
ycom_otp_code_templatename, email, firstname, codeMinimum body:
Hallo ###firstname###,
Ihr Anmeldecode lautet: ###code###
Der Code ist 5 Minuten gueltig.
Adjust the validity period via otp_auth_email_period (300–1800 seconds, default depends on plugin defaults).
YCom enforces OTP via rex_ycom_injection_otp:
otp_article_id.The injection is part of the standard auth flow — you don't need to call it manually.
When some user roles shouldn't go through OTP:
rex_extension::register('YCOM_AUTH_LOGIN_SUCCESS', function (rex_extension_point $ep) {
$user = $ep->getSubject();
if ($user instanceof rex_ycom_user && $user->isInGroup($apiOnlyGroupId)) {
rex_ycom_user_session::getInstance()->setOTPverified($user);
}
});
The OTP injection reads otp_verified from the DB session row (rex_ycom_user_session), not from $_SESSION. Use setOTPverified() to mark the current session as verified — rex_ycom_auth::setSessionVar('otp_verified', true) does NOT bypass the injection.
otp_auth_enforce=all without configuring otp_article_id – users get stuck in a redirect loop because the destination article doesn't exist.ycom_otp_code_template email template when using email-based OTP – delivery silently fails.rex_ycom_user table are sensitive – treat the table like password storage; restrict backend access.otp_auth_email_period values combined with shared mailboxes (info@) become a phishing vector – keep periods short.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub friendsofredaxo/claude-marketplace --plugin redaxo-ycom8 skills in this plugin
/ycom-extension-pointsYCom extension points (YCOM_CONFIG, YCOM_AUTH_INIT, YCOM_AUTH_LOGIN, YCOM_USER_CREATE, etc.), the injection system for intercepting the auth flow (OTP, password change, terms-of-use, custom injections), session management (rex_ycom_user_session), and user activity logging (rex_ycom_log). Use when the user customizes the auth flow, intercepts login/logout, adds custom auth steps (e.g. mandatory profile completion), manages sessions, or sets up activity logging./ycom-external-authExternal authentication for YCom – SAML, OAuth2, and CAS. Covers config files (data/addons/ycom/saml.php, oauth2.php, cas.php), the ycom_auth_saml/oauth2/cas value fields, default user data, allowed-domain restrictions, and field-mapping via YCOM_AUTH_*_MATCHING extension points. Use when the user integrates SSO, configures OAuth2 providers, maps SAML attributes to YCom user fields, or enables direct-link login./ycom-formsReady-to-use YCom form recipes – login, logout, registration with email confirmation, profile edit, password change (with and without old-password check), password reset, terms-of-use re-acceptance. Pipe and PHP syntax. Includes the YCom-specific value/validate/action fields (ycom_auth_password, ycom_auth_load_user, ycom_auth_logout, ycom_auth_returnto, ycom_auth_db, ycom_user_token, etc.). Use when the user builds any frontend form that interacts with YCom./ycom-overviewYCom architecture for REDAXO – core classes, user model (rex_ycom_user), authentication API (rex_ycom_auth), status constants, config keys (article_id_login, session_duration, otp_*), brute-force rules, and the standard navigation/login-state integration. Use when the user works with YCom for the first time, looks up an auth API method, configures session timeouts or login redirects, builds a meta navigation that switches based on login state, or programmatically creates/logs in users./ycom-permissionsArticle and media permissions in YCom – the group plugin (group-based article/media access, group permission types) and the media_auth plugin (media-pool file protection, .htaccess rewrite rule, redirect rules). Use when the user gates articles by login state or group, sets up media file protection, configures redirects for unauthorized access, or queries group membership programmatically./ycom-quickstartOne-shot recipe to bootstrap a complete YCom community frontend on a REDAXO instance that has the FriendsOfREDAXO `api` addon installed. Builds a clean tree under a Community category — six entry-point sections (login, password-forgot, profile, password-change, registration, logout) as sub-categories so they appear in the meta navigation automatically, and three token-target sub-articles (registration-confirm, password-reset, terms-of-use) tucked under their related section. Wires the YForm pipe code into slices on the standard "YForm Formbuilder" module, sets per-article ycom_auth_type, inserts the email templates, and writes the ycom/auth config keys. Use when the user asks to "set up YCom community pages", "scaffold the YCom frontend", "create the login/registration flow", or runs a fresh REDAXO instance that needs YCom wired up programmatically. Skip when the instance has no `api` addon (offer the manual setup from `ycom-forms` instead).Other plugins' skills for the same job