Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse
AuthenticationProviderfor an imperative API orReactiveAuthenticationProviderfor a reactive API instead.Unused. To be removed in the next major version.Not used.ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.Not used.ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.Not used.ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.UseLoginSuccessfulEvent(Object, String, Locale)insteadUseLogoutEvent(Object, String, Locale)insteadUseTokenValidatedEvent(Object, String, Locale)insteadNot used.UseBuilder(java.lang.String)instead.io.micronaut.security.oauth2.client.OpenIdProviderMetadata.getUserInfoEncryptionAlgValuesSupported()UseOauthClientConfiguration.DEFAULT_AUTH_METHODinstead.UseAuthenticationMethodsconstants instead.UseDefaultOauthAuthorizationResponseHandler(TokenEndpointClient, OauthRouteUrlBuilder, StateValidator, PkcePersistence). A handler created with this constructor does not send theredirect_uriparameter to the token endpoint.UseDefaultOpenIdAuthorizationResponseHandler(ReactiveOpenIdTokenResponseValidator, BeanContext, TokenEndpointClient, OauthRouteUrlBuilder, StateValidator, PkcePersistence), which resolves the global mapper among the beans without a qualifier, so that a mapper registered for another client is never used.UseSecureEndpoint.getAuthenticationMethodsSupported()instead.UseOauthCodeTokenRequestContext(AuthorizationResponse, OauthRouteUrlBuilder, SecureEndpoint, OauthClientConfiguration, String). A context created with this constructor does not send theredirect_uriparameter to the token endpoint.UseReactiveOauthPasswordAuthenticationProviderinstead.UseReactiveOpenIdPasswordAuthenticationProviderinstead.UseDefaultOpenIdAuthenticationMapper(OpenIdAdditionalClaimsConfiguration, AuthenticationModeConfiguration, OpenIdConfiguration, Collection)instead. This constructor never qualifies the username with the provider name.Method injection is used only to keep the existing constructors of this class and of its subclasses working. This method will be removed in the next major release in favour of pure constructor injection, when theTokenConfigurationbecomes a constructor parameter. Subclasses should not rely on it.UseDefaultReactiveOpenIdTokenResponseValidatorinsteadUseReactiveOpenIdTokenResponseValidatorinstead.UseSessionLogoutHandler(RedirectConfiguration, RedirectService, SessionStore, List)instead. Without aSessionStore, the session is not deleted on logout; only the authentication is removed from it.UseClaimsUtils.equalsIgnoringProtocolAndTrailingSlash(String, String)instead. This method no longer performs a suffix match.OverrideTokenCookieLoginHandler.getCookies(Authentication, AccessRefreshToken, HttpRequest)instead. This method is still invoked on login byTokenCookieLoginHandler.getCookies(Authentication, AccessRefreshToken, HttpRequest), which then replaces the values of the cookies supplied byLoginCookieProviderbeans with the ones bound to the authenticated user, so an override keeps its customizations; the cookies it supplies viaLoginCookieProvider.provideCookie(Object)are not bound to the user by themselves.io.micronaut.security.token.cookie.TokenCookieLoginHandler.setTokenConfiguration(TokenConfiguration) Method injection is used only to keep the existing constructors of this class and of its subclasses working. This method will be removed in the next major release in favour of pure constructor injection, when theTokenConfigurationbecomes a constructor parameter. Subclasses should not rely on it.UseCookieTokenReaderinstead.UseJwkSetFetcher.fetch(String, String)instead.Not used.ReactiveJwksSignatureused instead.UseJwksSignature.loadJwkSet(String, String)instead.Not used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeNo longer used. Since 4.18.2 no key type is applied unlessJwksSignatureConfigurationProperties.setKeyType(KeyType)is configured, so that keys of any type of the JWKS are matched.Not used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeNot used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeUseReactiveJsonWebTokenValidatorinstead.UseJsonWebTokenValidatororReactiveJsonWebTokenValidatorinstead.UseTokenResolver.resolveTokens(Object)instead.
-
Deprecated InterfacesInterfaceDescriptionUse
AuthenticationProviderfor an imperative API orReactiveAuthenticationProviderfor a reactive API instead.UseReactiveOpenIdTokenResponseValidatorinstead.
-
Deprecated ClassesClassDescriptionUse
ReactiveOauthPasswordAuthenticationProviderinstead.UseReactiveOpenIdPasswordAuthenticationProviderinstead.UseDefaultReactiveOpenIdTokenResponseValidatorinsteadUseCookieTokenReaderinstead.Not used.ReactiveJwksSignatureused instead.UseReactiveJsonWebTokenValidatorinstead.UseJsonWebTokenValidatororReactiveJsonWebTokenValidatorinstead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionUnused. To be removed in the next major version.Not used.
ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.Not used.ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.Not used.ControllerConfigurationProperties.DEFAULT_ENABLEDis used instead.UseOauthClientConfiguration.DEFAULT_AUTH_METHODinstead.No longer used. Since 4.18.2 no key type is applied unlessJwksSignatureConfigurationProperties.setKeyType(KeyType)is configured, so that keys of any type of the JWKS are matched.
-
Deprecated MethodsMethodDescriptionNot used.io.micronaut.security.oauth2.client.OpenIdProviderMetadata.getUserInfoEncryptionAlgValuesSupported()Use
AuthorizationServerResolverinsteadUseSecureEndpoint.getAuthenticationMethodsSupported()instead.Method injection is used only to keep the existing constructors of this class and of its subclasses working. This method will be removed in the next major release in favour of pure constructor injection, when theTokenConfigurationbecomes a constructor parameter. Subclasses should not rely on it.UseClaimsUtils.equalsIgnoringProtocolAndTrailingSlash(String, String)instead. This method no longer performs a suffix match.OverrideTokenCookieLoginHandler.getCookies(Authentication, AccessRefreshToken, HttpRequest)instead. This method is still invoked on login byTokenCookieLoginHandler.getCookies(Authentication, AccessRefreshToken, HttpRequest), which then replaces the values of the cookies supplied byLoginCookieProviderbeans with the ones bound to the authenticated user, so an override keeps its customizations; the cookies it supplies viaLoginCookieProvider.provideCookie(Object)are not bound to the user by themselves.io.micronaut.security.token.cookie.TokenCookieLoginHandler.setTokenConfiguration(TokenConfiguration) Method injection is used only to keep the existing constructors of this class and of its subclasses working. This method will be removed in the next major release in favour of pure constructor injection, when theTokenConfigurationbecomes a constructor parameter. Subclasses should not rely on it.UseJwkSetFetcher.fetch(String, String)instead.UseJwksSignature.loadJwkSet(String, String)instead.Not used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeNot used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeNot used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeUseTokenResolver.resolveTokens(Object)instead.
-
Deprecated ConstructorsConstructorDescriptionUse
LoginSuccessfulEvent(Object, String, Locale)insteadUseLogoutEvent(Object, String, Locale)insteadUseTokenValidatedEvent(Object, String, Locale)insteadUseBuilder(java.lang.String)instead.UseDefaultProviderResolver(List, Collection)instead, which ignores disabled OAuth 2.0 clients. Without the OAuth 2.0 client configurations theaudclaim cannot be used to tell apart OpenID clients whose issuers overlap, and no provider is resolved in that case.UseDefaultOauthAuthorizationResponseHandler(TokenEndpointClient, OauthRouteUrlBuilder, StateValidator, PkcePersistence). A handler created with this constructor does not send theredirect_uriparameter to the token endpoint.UseDefaultOpenIdAuthorizationResponseHandler(ReactiveOpenIdTokenResponseValidator, BeanContext, TokenEndpointClient, OauthRouteUrlBuilder, StateValidator, PkcePersistence), which resolves the global mapper among the beans without a qualifier, so that a mapper registered for another client is never used.UseDefaultSecureEndpoint(String, Set)instead.UseOauthCodeTokenRequestContext(AuthorizationResponse, OauthRouteUrlBuilder, SecureEndpoint, OauthClientConfiguration, String). A context created with this constructor does not send theredirect_uriparameter to the token endpoint.UseDefaultOpenIdAuthenticationMapper(OpenIdAdditionalClaimsConfiguration, AuthenticationModeConfiguration, OpenIdConfiguration, Collection)instead. This constructor never qualifies the username with the provider name.UseSessionLogoutHandler(RedirectConfiguration, RedirectService, SessionStore, List)instead. Without aSessionStore, the session is not deleted on logout; only the authentication is removed from it.