Package org.keycloak.protocol.oidc.utils
Class RedirectUtils
- java.lang.Object
-
- org.keycloak.protocol.oidc.utils.RedirectUtils
-
public class RedirectUtils extends Object
- Author:
- Stian Thorgersen
-
-
Constructor Summary
Constructors Constructor Description RedirectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getFirstValidRedirectUri(KeycloakSession session, String rootUrl, Set<String> validRedirects)
static Set<String>
resolveValidRedirects(KeycloakSession session, String rootUrl, Set<String> validRedirects)
static String
validateRedirectUriWildcard(String redirectUri)
static String
verifyRealmRedirectUri(KeycloakSession session, String redirectUri)
Deprecated.static String
verifyRedirectUri(KeycloakSession session, String rootUrl, String redirectUri, Set<String> validRedirects, boolean requireRedirectUri)
static String
verifyRedirectUri(KeycloakSession session, String redirectUri, ClientModel client)
static String
verifyRedirectUri(KeycloakSession session, String redirectUri, ClientModel client, boolean requireRedirectUri)
-
-
-
Method Detail
-
verifyRealmRedirectUri
@Deprecated public static String verifyRealmRedirectUri(KeycloakSession session, String redirectUri)
Deprecated.This method is deprecated for performance and security reasons and it is available just for the backwards compatibility. It is recommended to use some other methods of this class where the client is given as an argument to the method, so we know the client, which redirect-uri we are trying to resolve.
-
verifyRedirectUri
public static String verifyRedirectUri(KeycloakSession session, String redirectUri, ClientModel client)
-
verifyRedirectUri
public static String verifyRedirectUri(KeycloakSession session, String redirectUri, ClientModel client, boolean requireRedirectUri)
-
resolveValidRedirects
public static Set<String> resolveValidRedirects(KeycloakSession session, String rootUrl, Set<String> validRedirects)
-
verifyRedirectUri
public static String verifyRedirectUri(KeycloakSession session, String rootUrl, String redirectUri, Set<String> validRedirects, boolean requireRedirectUri)
-
getFirstValidRedirectUri
public static String getFirstValidRedirectUri(KeycloakSession session, String rootUrl, Set<String> validRedirects)
-
-