Skip to content

Commit

Permalink
fix: consent Gathering Script is not working in 4.3.0 version. #1549
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Sep 27, 2021
1 parent 0bb30b3 commit c8bac4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,11 @@ public ConsentGatheringContext getContext() {
return context;
}

public List<org.oxauth.persistence.model.Scope> getScopes(ConsentGatheringContext context) {
public List<org.oxauth.persistence.model.Scope> getScopes() {
if (context == null) {
return Collections.emptyList();
}

SessionId authenticatedSessionId = sessionIdService.getSessionId();
// Fix the list of scopes in the authorization page. oxAuth #739
Set<String> grantedScopes = scopeChecker.checkScopesPolicy(context.getClient(), authenticatedSessionId.getSessionAttributes().get(AuthorizeRequestParam.SCOPE));
Expand Down
2 changes: 1 addition & 1 deletion Server/src/main/webapp/authz/authorize.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</f:metadata>

<ui:param name="_client" value="#{consentGatherer.context.client}" />
<ui:param name="_scopes" value="#{consentGatherer.getScopes(consentGatherer.context)}" />
<ui:param name="_scopes" value="#{consentGatherer.scopes)}" />

<ui:define name="controlButttons">
<h:commandLink id="doNotAllowButton" class="button button-default"
Expand Down

0 comments on commit c8bac4e

Please sign in to comment.