diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProvider.java b/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProvider.java index 47037fae22..1d775eec5c 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProvider.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProvider.java @@ -36,7 +36,7 @@ import javax.ws.rs.core.UriInfo; */ public interface IdentityProvider extends Provider { - public interface AuthenticationCallback { + interface AuthenticationCallback { /** * This method should be called by provider after the JAXRS callback endpoint has finished authentication * with the remote IDP @@ -44,7 +44,11 @@ public interface IdentityProvider extends Provi * @param context * @return */ - public Response authenticated(BrokeredIdentityContext context); + Response authenticated(BrokeredIdentityContext context); + + Response cancelled(String code); + + Response error(String code, String message); } diff --git a/broker/oidc/src/main/java/org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider.java b/broker/oidc/src/main/java/org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider.java index b80949af2f..376210db27 100755 --- a/broker/oidc/src/main/java/org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider.java +++ b/broker/oidc/src/main/java/org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider.java @@ -58,6 +58,7 @@ public abstract class AbstractOAuth2IdentityProvider