Interface AuthentikProxiedAuthentication
- All Superinterfaces:
org.springframework.security.core.AuthenticatedPrincipal
,org.springframework.security.core.Authentication
,Principal
,Serializable
- All Known Implementing Classes:
AuthentikProxiedAnonymousPrincipal
,AuthentikProxiedAuthenticatedPrincipal
public sealed interface AuthentikProxiedAuthentication
extends org.springframework.security.core.Authentication, org.springframework.security.core.AuthenticatedPrincipal
permits AuthentikProxiedAuthenticatedPrincipal, AuthentikProxiedAnonymousPrincipal
Represents an authentication mechanism that is proxied through Authentik.
This interface extends both Authentication
and AuthenticatedPrincipal
, allowing for integration with
Spring Security's authentication framework while providing additional principal information.
Implementations of this interface should not support setting the authenticated status, as it should be immutable
after authentication is established. Attempting to set the authenticated status will result in an
UnsupportedOperationException
by default.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setAuthenticated
(boolean isAuthenticated) Unsupported operation for setting authentication status.Methods inherited from interface org.springframework.security.core.AuthenticatedPrincipal
getName
Methods inherited from interface org.springframework.security.core.Authentication
getAuthorities, getCredentials, getDetails, getPrincipal, isAuthenticated
-
Method Details
-
setAuthenticated
Unsupported operation for setting authentication status.- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Parameters:
isAuthenticated
- the desired authentication status- Throws:
UnsupportedOperationException
- always thrown as this operation is not supportedIllegalArgumentException
-