Example #1
0
 public static String verifyRedirectUri(
     UriInfo uriInfo, String redirectUri, RealmModel realm, ClientModel client) {
   if (client != null)
     return verifyRedirectUri(
         uriInfo, client.getRootUrl(), redirectUri, realm, client.getRedirectUris());
   return null;
 }
Example #2
0
 private static Set<String> getValidateRedirectUris(UriInfo uriInfo, RealmModel realm) {
   Set<String> redirects = new HashSet<>();
   for (ClientModel client : realm.getClients()) {
     redirects.addAll(
         resolveValidRedirects(uriInfo, client.getRootUrl(), client.getRedirectUris()));
   }
   return redirects;
 }
Example #3
0
 public Set<String> getRedirectUris() {
   if (updated != null) return updated.getRedirectUris();
   return cached.getRedirectUris();
 }