Skip to main content

How to use proxy login

Kuroco's proxy login feature allows specific members to log in on behalf of another member's account. This tutorial explains how to configure proxy login and how to use it from the management screen, the API, and Admin MCP.

What is proxy login?

Proxy login is a feature that allows members with specific permissions to log in on behalf of another member. It is useful in the following scenarios:

  • Providing support when a member cannot log in
  • Verifying a member's screen display and data
  • Making content changes or configuration updates on behalf of a member
  • Allowing users who belong to multiple groups to switch between accounts per group
caution

Configuring proxy login permissions (granting proxy login access in the member editor) requires editor or super user privileges.

Prerequisites

  • Configuring proxy login requires editor or super user privileges.
  • Using proxy login is available even for members without management screen access (via the Login/alias_login endpoint).

Setup instructions

Step 1: Open the member editor

  1. Log in to the Kuroco management screen.
  2. Click [Member management] -> [Member].
  3. From the member list, click the name of the target member (the member you want to log in as) to open their editor.

Step 2: Configure proxy login permission

Find the "Proxy login permission" field in the ID information section of the member editor.

ItemDescription
Proxy login permissionEnter the member IDs allowed to log in on this user's behalf. Only users with permission to log in to the management screen can set proxy logins.
  1. In the "Proxy login permission" field, enter the member ID of the administrator (the member who will perform the proxy login).
  2. If you want to allow multiple members to perform proxy logins, enter each member ID.
  3. Click [Update] to save the settings.
tip

You can find member IDs in the "ID" column on the member list screen.

Step 3: Execute a proxy login

There are three ways to use a proxy login: from the management screen, via the API, or with Admin MCP (OAuth authentication).

From the management screen

Members with management screen access can execute proxy logins directly from the management screen.

  1. Log in to the management screen as the authorized member.
  2. Click the member icon displayed at the top of the screen.
  3. Open "Login as" and click the name of the member you want to log in as.
  4. You are now logged in as the target member.

Image from Gyazo

info

The "Login as" dropdown in the management screen only displays members who have management screen access.

Via the API

Members without management screen access can also execute proxy logins using the Login/alias_login endpoint. Use this method when implementing proxy login from the frontend.

While logged in as the member performing the proxy login, send a request specifying the target member's ID.

Request parameters

ParameterTypeRequiredDescription
aliaslogin_idintegerYesMember ID of the proxy login target

Response

FieldTypeDescription
grant_tokenstringGrant token used for token exchange
statusinteger0: OK
member_idintegerLogged-in member ID
infoobjectAdditional login info (includes validUntil for cookie authentication)
messagesarrayMessages
errorsarrayErrors

If the proxy login fails, status code 401 is returned.

While in a proxy login session, sending another request with the original member's ID in aliaslogin_id returns you to the original member's login session.

info

While in a proxy login session, you will access the frontend and APIs with the target member's permissions. The target member's profile information and content viewing permissions will be applied.

tip

You can check which member IDs the currently logged-in member is allowed to impersonate by calling the Login::profile endpoint with aliaslogin_target set in the basic_info parameter.

With Admin MCP

When connecting to the Admin MCP server with OAuth authentication, you can select a proxy login target under "Account the token acts as" on the consent screen. If you select a proxy login target and approve, the issued access token executes MCP tools as that member.

  1. Connect to the Admin MCP server from your MCP client and start the OAuth authentication.
  2. Log in as a member who has been granted proxy login permission.
  3. The consent screen shows the "Account the token acts as" section. Select "Delegate as myself" or a proxy login target.
  4. Review the details and approve. An access token is issued for the selected member.

The "Account the token acts as" section lists members who meet all of the following conditions:

  • The target member's "Proxy login permission" includes the logged-in member's ID.
  • Both the target member and the logged-in member have "Authorized to log in" enabled and are within the "Login expiration date".
  • If a period is configured for the proxy login permission, the current date is within that period.
  • The target member belongs to an enabled group, and that group does not disable management screen access.
info

When a proxy login target is selected as the delegate, the token behaves as follows:

  • The token's effective permission is the selected member's current group permission intersected with the OAuth scope ceiling. mcp:tools.write applies the write-permission ceiling; mcp:admin uses the group permission without an additional ceiling.
  • Operations are executed as the selected member, and the approving member's ID is recorded as the actor in the audit logs. The approving member is also recorded as the updater of modified data.
  • The sub, profile, and email claims identify the selected member, and the approving member is identified as the actor by the act claim.
caution
  • Delegating the mcp:admin scope requires both the approving member and the delegate member to be super users.
  • Removing the "Proxy login permission" invalidates already-issued access tokens from the next request.
  • OAuth authorization cannot be approved from a proxy login session. Log in directly with your own account before approving.

For details on Admin MCP server authentication and OAuth scopes, see the MCP Server Reference.

Configuration examples

Example 1: Customer support use case

If a customer support agent (Member ID: 1) needs to proxy login as a regular member (Member ID: 100):

  1. Open the editor for Member ID: 100.
  2. Enter member ID 1 in the "Proxy login permission" field.
  3. Click [Update] to save.

The administrator logged in with Member ID: 1 can now proxy login as Member ID: 100.

Example 2: Allow multiple administrators

To allow multiple support agents (Member IDs: 1, 2, 3) to proxy login:

  1. Open the target member's editor.
  2. Enter member IDs 1, 2, and 3 in the "Proxy login permission" field.
  3. Click [Update] to save.

Important notes

  • Editor or super user privileges required for configuration: Configuring proxy login permissions (granting access in the member editor) requires editor or super user privileges.
  • No management screen access required for usage: Members without management screen access can use proxy login via the API endpoint (Login/alias_login).
  • Accountability: Actions performed during a proxy login session are recorded in the operation logs. Use proxy login only when necessary.
  • Security considerations: Grant proxy login permissions only to trusted members. Remove unnecessary proxy login permissions promptly.
  • Login permission required: The target member must have their "Authorized to log in" setting enabled.
  • Effect on Admin MCP tokens: A proxy login delegation applied to an Admin MCP access token becomes invalid from the next request once the "Proxy login permission" is removed.

Support

If you have any other questions, please contact us or check out Our Slack Community.