@Test public void verifyRedirectUri() throws Exception { assertFalse(service.verifyRedirectUri("notExist", "foo: ClientApp clientApp = service.create(dev, "myapp", "ya ~ good", "http: String id = clientApp.getClientId(); assertEquals(clientApp, service.verifyRedirectUri(id, "http: assertTrue(service.verifyRedirectUri(id, "http: assertTrue(service.verifyRedirectUri(id, "http: assertFalse(service.verifyRedirectUri(id, "http: assertFalse(service.verifyRedirectUri(id, "https: assertFalse(service.verifyRedirectUri(id, "myapp: assertFalse(service.verifyRedirectUri(id, null).isPresent()); }
@Override public Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri) { return clientAppDao.findApp(clientId).filter(app -> app.validateRedirectUri(redirectUri)); }
ClientAppServiceImpl implements ClientAppService { @Override public Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri) { return clientAppDao.findApp(clientId).filter(app -> app.validateRedirectUri(redirectUri)); } }
ClientAppServiceImpl implements ClientAppService { @Override public Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri) { return clientAppDao.findApp(clientId).filter(app -> app.validateRedirectUri(redirectUri)); }  }
ClientAppServiceImpl implements ClientAppService { @Override public Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri) { return clientAppDao.findApp(clientId).filter(app -> app.validateRedirectUri(redirectUri)); }  @Override ClientApp create(Authorization creator,
      String name,
      String description,
      String callbackUri); @Override ClientApp loadClientAppWithoutCache(String clientId); @Override List<ClientApp> listClientApps(Authorization creator); @Override void update(Authorization creator,
      String clientId,
      String name,
      String description,
      String callbackUri); @Override Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri); @Override String directGrantCode(String oauthDirectAuthorize,
      String clientId,
      String scope,
      String redirectUri); @Override OauthAccessTokenDto createOauthAccessTokenByGrantCode(String code,
      String clientId,
      String redirectUri); @Override Optional<ClientAppUserAccessToken> verifyAccessToken(@Nullable String rawAccessToken); @Override List<ClientAppUser> listGrantedAppUsers(Authorization authorization); @Override void resetClientAppSecret(Authorization creator, String clientId); @Override void revokeApp(Authorization user, String clientId); @Override boolean validateApp(String clientId, String clientSecret); @Override String generateDebugAccessToken(Authorization creator, String clientId); @Override List<ClientApp> listGrantedApps(Authorization user); }
ClientAppServiceImpl implements ClientAppService { @Override public Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri) { return clientAppDao.findApp(clientId).filter(app -> app.validateRedirectUri(redirectUri)); }  @Override ClientApp create(Authorization creator,
      String name,
      String description,
      String callbackUri); @Override ClientApp loadClientAppWithoutCache(String clientId); @Override List<ClientApp> listClientApps(Authorization creator); @Override void update(Authorization creator,
      String clientId,
      String name,
      String description,
      String callbackUri); @Override Optional<ClientApp> verifyRedirectUri(String clientId, String redirectUri); @Override String directGrantCode(String oauthDirectAuthorize,
      String clientId,
      String scope,
      String redirectUri); @Override OauthAccessTokenDto createOauthAccessTokenByGrantCode(String code,
      String clientId,
      String redirectUri); @Override Optional<ClientAppUserAccessToken> verifyAccessToken(@Nullable String rawAccessToken); @Override List<ClientAppUser> listGrantedAppUsers(Authorization authorization); @Override void resetClientAppSecret(Authorization creator, String clientId); @Override void revokeApp(Authorization user, String clientId); @Override boolean validateApp(String clientId, String clientSecret); @Override String generateDebugAccessToken(Authorization creator, String clientId); @Override List<ClientApp> listGrantedApps(Authorization user);  }