Package org.keycloak.forms.login
Interface LoginFormsProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
FreeMarkerLoginFormsProvider
- Author:
- Stian Thorgersen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddError
(FormMessage errorMessage) void
Adds a script to the html headeraddSuccess
(FormMessage errorMessage) Add a success message to the formjakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
createErrorPage
(jakarta.ws.rs.core.Response.Status status) jakarta.ws.rs.core.Response
createForm
(String form) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
getMessage
(String message) setAccessRequest
(List<AuthorizationDetails> clientScopesRequested) setActionUri
(URI requestUri) setAttribute
(String name, Object value) setAuthContext
(AuthenticationFlowContext context) setAuthenticationSession
(AuthenticationSessionModel authenticationSession) setClientSessionCode
(String accessCode) Used when authenticationSession was already removed for this browser session and hence we don't have any authenticationSession or user data.Set one global error message.setErrors
(List<FormMessage> messages) Set multiple error messages.setExecution
(String execution) setFormData
(jakarta.ws.rs.core.MultivaluedMap<String, String> formData) setMessage
(MessageType type, String message, Object... parameters) setResponseHeader
(String headerName, String headerValue) setStatus
(jakarta.ws.rs.core.Response.Status status) setSuccess
(String message, Object... parameters)
-
Field Details
-
UPDATE_PROFILE_CONTEXT_ATTR
- See Also:
-
IDENTITY_PROVIDER_BROKER_CONTEXT
- See Also:
-
USERNAME_HIDDEN
- See Also:
-
REGISTRATION_DISABLED
- See Also:
-
-
Method Details
-
addScript
Adds a script to the html header- Parameters:
scriptUrl
-
-
createResponse
-
createForm
-
getMessage
-
createLoginUsernamePassword
jakarta.ws.rs.core.Response createLoginUsernamePassword() -
createLoginUsername
jakarta.ws.rs.core.Response createLoginUsername() -
createLoginPassword
jakarta.ws.rs.core.Response createLoginPassword() -
createOtpReset
jakarta.ws.rs.core.Response createOtpReset() -
createPasswordReset
jakarta.ws.rs.core.Response createPasswordReset() -
createLoginTotp
jakarta.ws.rs.core.Response createLoginTotp() -
createLoginRecoveryAuthnCode
jakarta.ws.rs.core.Response createLoginRecoveryAuthnCode() -
createLoginWebAuthn
jakarta.ws.rs.core.Response createLoginWebAuthn() -
createRegistration
jakarta.ws.rs.core.Response createRegistration() -
createInfoPage
jakarta.ws.rs.core.Response createInfoPage() -
createUpdateProfilePage
jakarta.ws.rs.core.Response createUpdateProfilePage() -
createIdpLinkConfirmLinkPage
jakarta.ws.rs.core.Response createIdpLinkConfirmLinkPage() -
createIdpLinkEmailPage
jakarta.ws.rs.core.Response createIdpLinkEmailPage() -
createLoginExpiredPage
jakarta.ws.rs.core.Response createLoginExpiredPage() -
createErrorPage
jakarta.ws.rs.core.Response createErrorPage(jakarta.ws.rs.core.Response.Status status) -
createWebAuthnErrorPage
jakarta.ws.rs.core.Response createWebAuthnErrorPage() -
createOAuthGrant
jakarta.ws.rs.core.Response createOAuthGrant() -
createSelectAuthenticator
jakarta.ws.rs.core.Response createSelectAuthenticator() -
createOAuth2DeviceVerifyUserCodePage
jakarta.ws.rs.core.Response createOAuth2DeviceVerifyUserCodePage() -
createCode
jakarta.ws.rs.core.Response createCode() -
createX509ConfirmPage
jakarta.ws.rs.core.Response createX509ConfirmPage() -
createSamlPostForm
jakarta.ws.rs.core.Response createSamlPostForm() -
createFrontChannelLogoutPage
jakarta.ws.rs.core.Response createFrontChannelLogoutPage() -
createLogoutConfirmPage
jakarta.ws.rs.core.Response createLogoutConfirmPage() -
setAuthenticationSession
-
setClientSessionCode
-
setAccessRequest
-
setError
Set one global error message.- Parameters:
message
- key of messageparameters
- to be formatted into message
-
setErrors
Set multiple error messages.- Parameters:
messages
- to be set
-
addError
-
addSuccess
Add a success message to the form- Parameters:
errorMessage
-- Returns:
-
setSuccess
-
setInfo
-
setMessage
-
setDetachedAuthSession
LoginFormsProvider setDetachedAuthSession()Used when authenticationSession was already removed for this browser session and hence we don't have any authenticationSession or user data. Would just repeat previous info/error page after language is changed -
setUser
-
setResponseHeader
-
setFormData
-
setAttribute
-
setStatus
-
setActionUri
-
setExecution
-
setAuthContext
-