Package one.jpro.platform.auth.routing
Interface AuthOAuth2Filter
public interface AuthOAuth2Filter
Defines
Route filters using OAuth2 authentication mechanism.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic voidauthorize(@NotNull javafx.scene.Node node, @NotNull one.jpro.platform.auth.core.oauth2.OAuth2AuthenticationProvider authProvider, @NotNull one.jpro.platform.auth.core.oauth2.OAuth2Credentials credentials) Initiates the authorization process for a given OAuth2 authentication provider, updating the provided JavaFX Node with the authorization URL.static voidauthorize(@NotNull javafx.scene.Node node, @NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider) Initiates the authorization process for a given OpenID authentication provider.static one.jpro.platform.routing.Filtercreate(@NotNull one.jpro.platform.auth.core.oauth2.OAuth2AuthenticationProvider authProvider, @Nullable UserSession userSession, @NotNull one.jpro.platform.auth.core.oauth2.OAuth2Credentials credentials, @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.static one.jpro.platform.routing.Filtercreate(@NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider, @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.static one.jpro.platform.routing.Filtercreate(@NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider, @NotNull UserSession userSession, @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.
-
Method Details
-
create
static one.jpro.platform.routing.Filter create(@NotNull @NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider, @NotNull @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.- Parameters:
openidAuthProvider- the OpenID authentication provideruserFunction- operation on the given user argumenterrorFunction- operation on the given error argument- Returns:
- a
Filterobject
-
create
static one.jpro.platform.routing.Filter create(@NotNull @NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider, @NotNull @NotNull UserSession userSession, @NotNull @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.- Parameters:
openidAuthProvider- the OpenID authentication provideruserSession- the user session, when null the user will not be stored in the sessionuserFunction- operation on the given user argumenterrorFunction- operation on the given error argument- Returns:
- a
Filterobject
-
create
static one.jpro.platform.routing.Filter create(@NotNull @NotNull one.jpro.platform.auth.core.oauth2.OAuth2AuthenticationProvider authProvider, @Nullable @Nullable UserSession userSession, @NotNull @NotNull one.jpro.platform.auth.core.oauth2.OAuth2Credentials credentials, @NotNull @NotNull Function<one.jpro.platform.auth.core.authentication.User, one.jpro.platform.routing.Response> userFunction, @NotNull @NotNull Function<Throwable, one.jpro.platform.routing.Response> errorFunction) CreatesRoutefilter from a givenOAuth2AuthenticationProvider,OAuth2Credentialsand functions for handling successful and error cases.- Parameters:
authProvider- an OAuth2 authentication provideruserSession- the user session, when null the user will not be stored in the sessioncredentials- an OAuth2 credentialsuserFunction- operation on the given user argumenterrorFunction- operation on the given error argument- Returns:
- a
Filterobject
-
authorize
static void authorize(@NotNull @NotNull javafx.scene.Node node, @NotNull @NotNull one.jpro.platform.auth.core.oauth2.OAuth2AuthenticationProvider authProvider, @NotNull @NotNull one.jpro.platform.auth.core.oauth2.OAuth2Credentials credentials) Initiates the authorization process for a given OAuth2 authentication provider, updating the provided JavaFX Node with the authorization URL.- Parameters:
node- the JavaFX node context for the authorizationauthProvider- the OAuth2 authentication providercredentials- the OAuth2 credentials
-
authorize
static void authorize(@NotNull @NotNull javafx.scene.Node node, @NotNull @NotNull one.jpro.platform.auth.core.oauth2.provider.OpenIDAuthenticationProvider openidAuthProvider) Initiates the authorization process for a given OpenID authentication provider.- Parameters:
node- the JavaFX node context for the authorizationopenidAuthProvider- the OpenID authentication provider
-