Class OmpassAuthAction

java.lang.Object
io.jenkins.plugins.ompass.OmpassAuthAction
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction, UnprotectedRootAction

@Extension public class OmpassAuthAction extends Object implements UnprotectedRootAction
RootAction that initiates the OMPASS 2FA authentication flow. For users redirected by OmpassFilter, this action calls the OMPASS server's startAuth API and redirects the user directly to the OMPASS authentication page. On error, an error message is displayed via the Jelly view.
  • Constructor Details

    • OmpassAuthAction

      public OmpassAuthAction()
  • Method Details

    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getOmpassUrl

      public String getOmpassUrl()
    • getRelayState

      public String getRelayState()
    • getErrorMessage

      public String getErrorMessage()
    • getUsername

      public String getUsername()
    • doIndex

      public void doIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException
      Handles GET requests to /ompassAuth/. Initiates the OMPASS authentication flow for the current user. On success, redirects directly to the OMPASS authentication page. On failure, sets an error message and forwards to the Jelly view.
      Throws:
      IOException
      jakarta.servlet.ServletException