java.lang.Object
edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiServiceLogicBase
edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Mcp

public class UiV2Mcp extends UiServiceLogicBase
Service logic for the MCP info page. Shows MCP connection details, registration token, and access status.

The OAuth consent flow (authorize and submitAuthorize) has been moved to UiV2OAuth.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mcpDeleteOAuthRegistration(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    AJAX endpoint to delete an OAuth client registration.
    void
    mcpInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Show the MCP info page with connection details, bearer token, and instructions.
    void
    mcpOAuthRegistrations(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    AJAX endpoint to load OAuth client registrations for the logged-in user.
    void
    mcpRegisterConfidentialClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    AJAX endpoint to register a confidential OAuth client (with client_secret).
    void
    mcpToolLogs(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    AJAX endpoint to load the most recent 200 MCP tool log entries for the logged-in user, newest first.

    Methods inherited from class edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiServiceLogicBase

    showJsp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UiV2Mcp

      public UiV2Mcp()
  • Method Details

    • mcpInfo

      public void mcpInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Show the MCP info page with connection details, bearer token, and instructions. Accessible to all logged-in users via the Miscellaneous screen.
      Parameters:
      request -
      response -
    • mcpToolLogs

      public void mcpToolLogs(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX endpoint to load the most recent 200 MCP tool log entries for the logged-in user, newest first. Renders into #mcpToolLogsResultsId.
      Parameters:
      request -
      response -
    • mcpOAuthRegistrations

      public void mcpOAuthRegistrations(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX endpoint to load OAuth client registrations for the logged-in user. Renders into #mcpOAuthRegistrationsResultsId.
      Parameters:
      request -
      response -
    • mcpDeleteOAuthRegistration

      public void mcpDeleteOAuthRegistration(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX endpoint to delete an OAuth client registration. Verifies the client belongs to the logged-in user before deleting. After deletion, re-renders the OAuth registrations table.
      Parameters:
      request -
      response -
    • mcpRegisterConfidentialClient

      public void mcpRegisterConfidentialClient(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      AJAX endpoint to register a confidential OAuth client (with client_secret). The user must be in the canRegisterConfidentialOAuthClient group. Shows the client_id, client_secret, authorization URL, and token URL.
      Parameters:
      request -
      response -