Skip to content

Commit 42e44c9

Browse files
federicaagostinienricovianello
authored andcommitted
Add support for resource parameter (#916)
- Add the requested resources to the consent page - Allow iam-test-client to perform 'resource' request - Add all granted resources if not requested at token endpoint - All granted resources can be requested also with aud or audience parameters at token endpoint
1 parent 6efe5a0 commit 42e44c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

iam-login-service/src/main/java/it/infn/mw/iam/core/oauth/IamDeviceEndpointController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@ private void setModelForConsentPage(ModelMap model, Authentication authn, Device
315315
model.put("resources", splitBySpace(dc.getRequestParameters().get(RESOURCE)));
316316
}
317317

318-
// just for tests validation
319-
model.put("scope", OAuth2Utils.formatParameterList(dc.getScope()));
318+
// just for tests validation
319+
model.put("scope",OAuth2Utils.formatParameterList(dc.getScope()));
320+
320321
}
321322

322323
private void approveDevice(DeviceCode dc, OAuth2Authentication o2Auth) {

0 commit comments

Comments
 (0)