Interface ClientRedirectService

  • All Known Implementing Classes:
    DefaultClientRedirectService

    public interface ClientRedirectService
    Service used for returning redirects for a client and/or server
    Author:
    Jay Aisenbrey (cja769)
    • Method Detail

      • getDefaultRedirectUrlForClientId

        String getDefaultRedirectUrlForClientId​(@Nullable
                                                String clientId)
        Used for returning the default redirect URL for the provided client
        Parameters:
        clientId - The String id of the client to resolve the redirect URL for
        Returns:
        The default redirect URL for the given client, if exists, or null
      • canRedirectToUrl

        boolean canRedirectToUrl​(String redirectUrl,
                                 String clientId)
        Checks if the user is able to be redirected to the given redirect URL
        Parameters:
        redirectUrl - The URL to check against
        clientId - The id of the AuthorizedClient to use for validating the URL
        Returns:
        True if the user can be redirected to redirectUrl, else false