Searched refs:saveConsent (Results 1 - 13 of 13) sorted by relevance

/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/test/java/org/forgerock/oauth2/core/
H A DAuthorizationServiceImplTest.java136 boolean saveConsent = false;
144 authorizationService.authorize(request, consentGiven, saveConsent);
156 boolean saveConsent = false;
164 authorizationService.authorize(request, consentGiven, saveConsent);
168 verify(providerSettings, never()).saveConsent(eq(resourceOwner), anyString(), anySetOf(String.class));
179 boolean saveConsent = true;
187 authorizationService.authorize(request, consentGiven, saveConsent);
191 verify(providerSettings).saveConsent(eq(resourceOwner), anyString(), anySetOf(String.class));
203 boolean saveConsent = false;
213 authorizationService.authorize(request, consentGiven, saveConsent);
[all...]
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/main/java/org/forgerock/oauth2/core/
H A DAuthorizationService.java98 * @param saveConsent {@code true} if the user has requested that their consent be saved for future authorization
121 AuthorizationToken authorize(OAuth2Request request, boolean consentGiven, boolean saveConsent) argument
H A DAuthorizationServiceImpl.java193 public AuthorizationToken authorize(OAuth2Request request, boolean consentGiven, boolean saveConsent) argument
218 if (saveConsent) {
219 providerSettings.saveConsent(resourceOwner, clientRegistration.getClientId(), validatedScope);
H A DOAuth2ProviderSettings.java167 void saveConsent(ResourceOwner resourceOwner, String clientId, Set<String> scope); method in interface:OAuth2ProviderSettings
/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/main/java/org/forgerock/oauth2/restlet/
H A DDeviceCodeVerificationResource.java142 final boolean saveConsent = "on".equalsIgnoreCase(request.<String>getParameter("save_consent"));
143 if (saveConsent) {
144 saveConsent(request);
182 private void saveConsent(OAuth2Request request) throws NotFoundException, ServerException, InvalidScopeException, method in class:DeviceCodeVerificationResource
191 providerSettings.saveConsent(resourceOwner, clientRegistration.getClientId(), validatedScope);
H A DAuthorizeResource.java153 final boolean saveConsent = "on".equalsIgnoreCase(request.<String>getParameter("save_consent"));
157 saveConsent);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/restlet/
H A DDeviceCodeVerificationResource.java157 final boolean saveConsent = "on".equalsIgnoreCase(request.<String>getParameter("save_consent"));
158 if (saveConsent) {
159 saveConsent(request);
197 private void saveConsent(OAuth2Request request) throws NotFoundException, ServerException, InvalidScopeException, method in class:DeviceCodeVerificationResource
206 providerSettings.saveConsent(resourceOwner, clientRegistration.getClientId(), validatedScope);
H A DAuthorizeResource.java168 final boolean saveConsent = "on".equalsIgnoreCase(request.<String>getParameter("save_consent"));
172 saveConsent);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DAuthorizationService.java256 * @param saveConsent {@code true} if the user has requested that their consent be saved for future authorization
281 public AuthorizationToken authorize(OAuth2Request request, boolean consentGiven, boolean saveConsent) argument
312 if (saveConsent) {
313 providerSettings.saveConsent(resourceOwner, clientRegistration.getClientId(), validatedScope);
H A DOAuth2ProviderSettings.java211 void saveConsent(ResourceOwner resourceOwner, String clientId, Set<String> scope); method in interface:OAuth2ProviderSettings
H A DAgentOAuth2ProviderSettings.java142 public void saveConsent(ResourceOwner resourceOwner, String clientId, Set<String> scope) { method in class:AgentOAuth2ProviderSettings
H A DRealmOAuth2ProviderSettings.java392 public void saveConsent(ResourceOwner resourceOwner, String clientId, Set<String> scope) { method in class:RealmOAuth2ProviderSettings
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMOAuth2ProviderSettings.java475 public void saveConsent(ResourceOwner resourceOwner, String clientId, Set<String> scope) { method in class:OpenAMOAuth2ProviderSettings

Completed in 2246 milliseconds