Package io.jenkins.plugins.ompass
Class OmpassAuthAction
java.lang.Object
io.jenkins.plugins.ompass.OmpassAuthAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Handles GET requests to /ompassAuth/.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
OmpassAuthAction
public OmpassAuthAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getOmpassUrl
-
getRelayState
-
getErrorMessage
-
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:
IOExceptionjakarta.servlet.ServletException
-