Class EscapeHatch
java.lang.Object
hudson.model.AbstractDescribableImpl<OidcProperty>
org.jenkinsci.plugins.oic.OidcProperty
org.jenkinsci.plugins.oic.properties.EscapeHatch
- All Implemented Interfaces:
Describable<OidcProperty>
Escape hatch for authentication, allowing users to log in with a username and password.
This is intended for emergency access and should be used with caution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Excluding the escapeHatch login from CSRF protection as the crumb is calculated based on the authentication mirroring behavior of the normal login page.static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.springframework.security.core.Authentication>
authenticate
(org.springframework.security.core.Authentication authentication) Allows a property to authenticate the user.getGroup()
Methods inherited from class org.jenkinsci.plugins.oic.OidcProperty
contributeLogoutQueryParameters, newExecution
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
B_CRYPT_PATTERN
-
-
Constructor Details
-
EscapeHatch
@DataBoundConstructor public EscapeHatch(@NonNull String username, @CheckForNull String group, @NonNull Secret secret) throws Descriptor.FormException - Throws:
Descriptor.FormException
-
-
Method Details
-
getUsername
-
getGroup
-
getSecret
-
authenticate
@NonNull public Optional<org.springframework.security.core.Authentication> authenticate(@NonNull org.springframework.security.core.Authentication authentication) Description copied from class:OidcProperty
Allows a property to authenticate the user.- Overrides:
authenticate
in classOidcProperty
- See Also:
-