Searched refs:scopes (Results 1 - 25 of 77) sorted by relevance

1234

/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMScopeValidator.java172 Set<String> scopes;
175 scopes = defaultScopes;
177 scopes = new HashSet<String>(allowedScopes);
178 scopes.retainAll(requestedScopes);
179 if (requestedScopes.size() > scopes.size()) {
186 if (scopes == null || scopes.isEmpty()) {
190 return scopes;
203 Set<String> scopes;
221 scopes
257 getScriptFriendlyScopes(Set<String> scopes) argument
[all...]
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/provider/impl/
H A DScopeImpl.java73 * the scopes are assumed to be OpenAM user attributes, which will be returned
145 Set<String> scopes;
148 scopes = defaultScopes;
150 scopes = new HashSet<String>(allowedScopes);
151 scopes.retainAll(requestedScopes);
153 if (requestedScopes.size() > scopes.size()) {
160 if (scopes == null || scopes.isEmpty()) {
164 return scopes;
176 final Set<String> scopes
[all...]
/forgerock/openam-v13/openam-oauth2/src/test/java/org/forgerock/openam/oauth2/
H A DOpenAMScopeValidatorTest.java72 Set<String> scopes = validator.validateAuthorizationScope(client, asSet("a", "b"), request);
75 assertThat(scopes).containsOnly("a", "b");
84 Set<String> scopes = validator.validateAccessTokenScope(client, asSet("a", "b"), request);
87 assertThat(scopes).containsOnly("a", "b");
96 Set<String> scopes = validator.validateRefreshTokenScope(client, asSet("a", "b"), asSet("a", "b", "c"), request);
99 assertThat(scopes).containsOnly("a", "b");
108 Set<String> scopes = validator.validateAuthorizationScope(client, new HashSet<String>(), request);
111 assertThat(scopes).containsOnly("a", "b");
/forgerock/openam-v13/openam-scripting/src/main/groovy/
H A Doidc-claims-extension.groovy26 * scopes - always present, the requested scopes
85 scopes.findAll { s -> !("openid".equals(s) || scopeClaimsMap.containsKey(s)) }.each { s ->
104 def computedClaims = scopes.findAll { s -> !"openid".equals(s) && scopeClaimsMap.containsKey(s) }.inject(claims) { map, s ->
112 scopes.contains(scope.key)
/forgerock/openam-v13/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeCondition.java41 * request OAuth2 scopes are sufficient to gain access.
68 * Set of scopes that are required for this condition to allow the request.
87 JSONArray scopes = jo.getJSONArray(ATTR_SCOPES);
88 for (int i = 0; i < scopes.length(); i++) {
89 requiredScopes.add(scopes.getString(i));
111 debug.message("Entering OAuth2ScopeCondition.getConditionDecision(). Required scopes=" + requiredScopes
112 + ". Request scopes=" + (env == null ? "<missing>" : env.get(REQUEST_SCOPE_ATTRIBUTE)));
116 String scopes = "";
118 scopes = scopeParams.iterator().next();
124 Set<String> requestScopes = toScopeSet(scopes);
[all...]
/forgerock/openam-v13/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/dashboard/views/
H A DOAuthTokensView.js40 scopes: _.values(application.scopes).join(", "),
/forgerock/openam-v13/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/uma/models/
H A DUMAPolicyPermission.js34 key: "scopes",
41 if (!attributes.scopes || !attributes.scopes.length) { return "no scopes"; } // FIXME i18n
H A DUMAResourceSetWithPolicy.js58 response.scopes = _.map(response.scopes, function (scope) {
71 key: "scopes",
/forgerock/openam-v13/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/uma/views/share/
H A DCommonShare.js156 this.data.scopes = this.parentModel.get("scopes").toJSON();
171 name: "scopes",
175 var formatted = this.model.get("scopes").pluck("name").join(", ");
247 scopes,
251 scopes = existing.get("scopes").pluck("name");
253 selectPermission[0].selectize.setValue(scopes);
271 scopes = _.each(this.$el.find("#selectPermission select")[0].selectize.getValue(), function (scope) {
278 scopes
[all...]
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DPendingRequestsService.java108 * @param scopes The requested scopes.
114 String requestingPartyId, String realm, Set<String> scopes) throws ServerException {
117 requestingPartyId, scopes);
123 String scopesString = pendingRequestEmailTemplate.buildScopeString(scopes, resourceOwnerId, realm);
205 Collection<String> scopes = getScopes(request, content);
206 return createUmaPolicy(context, request, scopes)
207 .thenAsync(approvePendingRequest(request, scopes, id, realm));
218 final Collection<String> scopes, final String id, final String realm) {
231 scopes, reques
112 createPendingRequest(HttpServletRequest httpRequest, String resourceSetId, String resourceSetName, String resourceOwnerId, String requestingPartyId, String realm, Set<String> scopes) argument
217 approvePendingRequest(final UmaPendingRequest request, final Collection<String> scopes, final String id, final String realm) argument
263 createUmaPolicy(final Context context, final UmaPendingRequest request, final Collection<String> scopes) argument
303 createPolicyJson(String resourceSetId, String requestingPartyId, Collection<String> scopes) argument
[all...]
H A DPermission.java23 private Set<String> scopes; field in class:Permission
26 public Permission(String resourceSetId, Set<String> scopes) { argument
28 this.scopes = scopes;
42 return scopes;
45 public void setScopes(Set<String> scopes) { argument
46 this.scopes = scopes;
H A DPermissionTicket.java38 private static final String SCOPES = "scopes";
57 public PermissionTicket(String id, String resourceSetId, Set<String> scopes, String resourceServerClientId) { argument
61 contents.put(SCOPES, scopes);
97 JsonValue scopes = contents.get(SCOPES);
98 return scopes == null ? null : scopes.asSet(String.class);
101 public void setScopes(Set<String> scopes) { argument
102 contents.put(SCOPES, scopes);
H A DUmaPolicy.java113 throw new BadRequestException("Invalid UMA policy permission. Missing required attribute, 'scopes'.");
118 throw new BadRequestException("Invalid UMA policy permission. Required attribute, 'scopes', "
159 private Set<String> scopes; field in class:UmaPolicy
200 * Parses the unique set of scopes that are defined for all subject in this UMA policy.
202 * @return The set of defined scopes on the UMA policy.
205 if (scopes == null) {
206 scopes = new HashSet<>();
208 scopes.addAll(permission.get(SCOPES_KEY).asList(String.class));
211 return scopes;
231 * "scopes"
[all...]
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/openam/oauth2/
H A DOpenAMScopeValidatorTest.java69 Set<String> scopes = validator.validateAuthorizationScope(client, asSet("a", "b"), request);
72 assertThat(scopes).containsOnly("a", "b");
81 Set<String> scopes = validator.validateAccessTokenScope(client, asSet("a", "b"), request);
84 assertThat(scopes).containsOnly("a", "b");
93 Set<String> scopes = validator.validateRefreshTokenScope(client, asSet("a", "b"), asSet("a", "b", "c"), request);
96 assertThat(scopes).containsOnly("a", "b");
105 Set<String> scopes = validator.validateAuthorizationScope(client, new HashSet<String>(), request);
108 assertThat(scopes).containsOnly("a", "b");
/forgerock/openam/openam-oauth2/src/test/resources/
H A Doidc-claims-extension.groovy26 * scopes - always present, the requested scopes
85 scopes.findAll { s -> !("openid".equals(s) || scopeClaimsMap.containsKey(s)) }.each { s ->
104 def computedClaims = scopes.findAll { s -> !"openid".equals(s) && scopeClaimsMap.containsKey(s) }.inject(claims) { map, s ->
112 scopes.contains(scope.key)
/forgerock/openam/openam-scripting/src/main/groovy/
H A Doidc-claims-extension.groovy26 * scopes - always present, the requested scopes
85 scopes.findAll { s -> !("openid".equals(s) || scopeClaimsMap.containsKey(s)) }.each { s ->
104 def computedClaims = scopes.findAll { s -> !"openid".equals(s) && scopeClaimsMap.containsKey(s) }.inject(claims) { map, s ->
112 scopes.contains(scope.key)
/forgerock/openam/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeCondition.java41 * request OAuth2 scopes are sufficient to gain access.
68 * Set of scopes that are required for this condition to allow the request.
87 JSONArray scopes = jo.getJSONArray(ATTR_SCOPES);
88 for (int i = 0; i < scopes.length(); i++) {
89 requiredScopes.add(scopes.getString(i));
111 debug.message("Entering OAuth2ScopeCondition.getConditionDecision(). Required scopes=" + requiredScopes
112 + ". Request scopes=" + (env == null ? "<missing>" : env.get(REQUEST_SCOPE_ATTRIBUTE)));
116 String scopes = "";
118 scopes = scopeParams.iterator().next();
124 Set<String> requestScopes = toScopeSet(scopes);
[all...]
/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/user/dashboard/views/
H A DOAuthTokensView.js40 scopes: _.values(application.scopes).join(", "),
/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/user/uma/models/
H A DUMAPolicyPermission.js26 key: "scopes",
33 if (!attributes.scopes || !attributes.scopes.length) { return "no scopes"; } // FIXME i18n
H A DUMAResourceSetWithPolicy.js50 response.scopes = _.map(response.scopes, function (scope) {
63 key: "scopes",
/forgerock/openam/openam-ui/openam-ui-ria/src/main/js/org/forgerock/openam/ui/user/uma/views/share/
H A DCommonShare.js150 this.data.scopes = this.parentModel.get("scopes").toJSON();
165 name: "scopes",
169 var formatted = this.model.get("scopes").pluck("name").join(", ");
241 scopes,
245 scopes = existing.get("scopes").pluck("name");
247 selectPermission[0].selectize.setValue(scopes);
264 scopes = _.each(this.$el.find("#selectPermission select")[0].selectize.getValue(), function (scope) {
272 scopes
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DPendingRequestsService.java110 * @param scopes The requested scopes.
116 String requestingPartyId, String realm, Set<String> scopes) throws ServerException {
119 requestingPartyId, scopes);
125 String scopesString = pendingRequestEmailTemplate.buildScopeString(scopes, resourceOwnerId, realm);
207 Collection<String> scopes = getScopes(request, content);
208 return createUmaPolicy(context, request, scopes)
209 .thenAsync(approvePendingRequest(request, scopes, id, realm));
220 final Collection<String> scopes, final String id, final String realm) {
233 scopes, reques
114 createPendingRequest(HttpServletRequest httpRequest, String resourceSetId, String resourceSetName, String resourceOwnerId, String requestingPartyId, String realm, Set<String> scopes) argument
219 approvePendingRequest(final UmaPendingRequest request, final Collection<String> scopes, final String id, final String realm) argument
265 createUmaPolicy(final Context context, final UmaPendingRequest request, final Collection<String> scopes) argument
305 createPolicyJson(String resourceSetId, String requestingPartyId, Collection<String> scopes) argument
[all...]
H A DPermission.java23 private Set<String> scopes; field in class:Permission
26 public Permission(String resourceSetId, Set<String> scopes) { argument
28 this.scopes = scopes;
42 return scopes;
45 public void setScopes(Set<String> scopes) { argument
46 this.scopes = scopes;
H A DPermissionTicket.java41 private static final String SCOPES = "scopes";
60 public PermissionTicket(String id, String resourceSetId, Set<String> scopes, String resourceServerClientId) { argument
64 contents.put(SCOPES, newList(scopes));
100 JsonValue scopes = contents.get(SCOPES);
101 return scopes == null ? null : scopes.as(setOf(String.class));
104 public void setScopes(Set<String> scopes) { argument
105 contents.put(SCOPES, newList(scopes));
H A DUmaUtils.java60 Set<String> scopes = attrValues.get(OAuth2Constants.OAuth2Client.SCOPES);
61 if (scopes != null) {
62 for (String scope : scopes) {

Completed in 101 milliseconds

1234