@Test public void generateDebugAccessToken() throws Exception { ClientApp app1 = service.create(dev, "myapp1", "ya ~ good", "http: String token = service.generateDebugAccessToken(dev, app1.getClientId()); assertTrue(service.verifyAccessToken(token).isPresent()); }
@Override public String generateDebugAccessToken(Authorization creator, String clientId) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); return createOauthAccessToken(clientApp, creator.authenticatedId(), EnumSet.allOf(ClientAppScope.class), DEBUG_ACCESS_TOKEN_EXPIRE_DURATION).getAccessToken(); }
ClientAppServiceImpl implements ClientAppService { @Override public String generateDebugAccessToken(Authorization creator, String clientId) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); return createOauthAccessToken(clientApp, creator.authenticatedId(), EnumSet.allOf(ClientAppScope.class), DEBUG_ACCESS_TOKEN_EXPIRE_DURATION).getAccessToken(); } }
ClientAppServiceImpl implements ClientAppService { @Override public String generateDebugAccessToken(Authorization creator, String clientId) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); return createOauthAccessToken(clientApp, creator.authenticatedId(), EnumSet.allOf(ClientAppScope.class), DEBUG_ACCESS_TOKEN_EXPIRE_DURATION).getAccessToken(); }  }
ClientAppServiceImpl implements ClientAppService { @Override public String generateDebugAccessToken(Authorization creator, String clientId) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); return createOauthAccessToken(clientApp, creator.authenticatedId(), EnumSet.allOf(ClientAppScope.class), DEBUG_ACCESS_TOKEN_EXPIRE_DURATION).getAccessToken(); }  @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 String generateDebugAccessToken(Authorization creator, String clientId) { ClientApp clientApp = verifyClientAppForOwner(creator, clientId); return createOauthAccessToken(clientApp, creator.authenticatedId(), EnumSet.allOf(ClientAppScope.class), DEBUG_ACCESS_TOKEN_EXPIRE_DURATION).getAccessToken(); }  @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);  }