public class OidcCallbackV1 extends java.lang.Object implements RestPluginProcess
GET /oidc/callbackAfter the user authenticates with Cognito's managed login page, Cognito redirects to this endpoint with an authorisation code. This plugin:
| Constructor and Description |
|---|
OidcCallbackV1() |
| Modifier and Type | Method and Description |
|---|---|
static OidcRedirectResponse |
buildErrorRedirect(java.lang.String frontendUrl,
java.lang.String error,
java.lang.String errorDescription)
Builds a redirect response to the frontend with error parameters.
|
java.lang.Object |
restCreate(WebClient client,
RestDefinition restDefinition,
MutableDataSource mds)
HTTP POST calls the the Create ReST service.
|
java.lang.Object |
restDelete(WebClient client,
RestDefinition restDefinition,
MutableDataSource mds)
HTTP DELETE calls the the Delete ReST service.
|
java.lang.Object |
restRetrieve(WebClient client,
RestDefinition restDefinition,
ReadOnlyDataSource rds)
HTTP GET calls the the Retrieval ReST service.
|
java.lang.Object |
restUpdate(WebClient client,
RestDefinition restDefinition,
MutableDataSource mds)
HTTP PUT calls the the Update ReST service.
|
static void |
validateRedirectUrl(java.lang.String redirectUrl,
OidcConfig config)
Validates that the redirect URL origin is in the allowed origins list.
|
@CheckReturnValue
@Nonnull
public java.lang.Object restRetrieve(@Nonnull
WebClient client,
@Nonnull
RestDefinition restDefinition,
@Nonnull
ReadOnlyDataSource rds)
throws java.lang.Exception
RestPluginProcessrestRetrieve in interface RestPluginProcessclient - the client. Null means check only of opsrestDefinition - the definitionrds - the data source to usejava.lang.UnsupportedOperationException - if this method is NOT supported.java.lang.Exception - an error has occurred.@CheckReturnValue
@Nonnull
public java.lang.Object restCreate(@Nonnull
WebClient client,
@Nonnull
RestDefinition restDefinition,
@Nonnull
MutableDataSource mds)
throws java.lang.Exception
RestPluginProcessrestCreate in interface RestPluginProcessclient - the client. Null means check only of opsrestDefinition - the definitionmds - the data source to usejava.lang.UnsupportedOperationException - if this method is NOT supported.ExceptionResponse - an error has occurred.java.lang.Exception@CheckReturnValue
@Nonnull
public java.lang.Object restUpdate(@Nonnull
WebClient client,
@Nonnull
RestDefinition restDefinition,
@Nonnull
MutableDataSource mds)
throws java.lang.Exception
RestPluginProcessrestUpdate in interface RestPluginProcessclient - the client. Null means check only of opsrestDefinition - the definitionmds - the data source to usejava.lang.UnsupportedOperationException - if this method is NOT supported.ExceptionResponse - an error has occurred.java.lang.Exception@CheckReturnValue
@Nonnull
public java.lang.Object restDelete(@Nonnull
WebClient client,
@Nonnull
RestDefinition restDefinition,
@Nonnull
MutableDataSource mds)
throws java.lang.Exception
RestPluginProcessrestDelete in interface RestPluginProcessclient - the client. Null means check only of opsrestDefinition - the definitionmds - the data source to use.java.lang.UnsupportedOperationException - if this method is NOT supported.ExceptionResponse - an error has occurred.java.lang.Exceptionpublic static void validateRedirectUrl(@Nonnull
java.lang.String redirectUrl,
@Nonnull
OidcConfig config)
throws RestExceptionResponse
redirectUrl - the URL to validateconfig - the OIDC configurationRestExceptionResponse - if the redirect URL is not allowed@CheckReturnValue @Nonnull public static OidcRedirectResponse buildErrorRedirect(@Nonnull java.lang.String frontendUrl, @Nonnull java.lang.String error, java.lang.String errorDescription)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.