Skip to content

Commit

Permalink
Merge branch 'main' into ci-cedarling-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu authored Jan 16, 2025
2 parents 2abd0d6 + d19e34f commit f82a14e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def destroy(self, configurationAttributes):
return True

def getApiVersion(self):
return 1
return 11

# Main consent-gather method. Must return True (if gathering performed successfully) or False (if fail).
# All user entered values can be access via Map<String, String> context.getPageAttributes()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import io.jans.as.model.jwt.JwtHeaderName;
import org.apache.logging.log4j.util.Strings;
import org.json.JSONArray;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
Expand All @@ -42,7 +41,7 @@ public class SelectAccountHttpTest extends BaseTest {

@BeforeTest
public void setUp() {
driver = new HtmlUnitDriver(true);
startSelenium();
pageConfig = newPageConfig(driver);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,20 @@ public String getClientDisplayName() {
}

final Client client = clientService.getClient(clientId);
return getCheckedClientDisplayName(client);
}

public String getClientDisplayName(final Client client) {
log.trace("client {}", client);

if (client == null) {
getClientDisplayName();
}

return getCheckedClientDisplayName(client);
}

private String getCheckedClientDisplayName(final Client client) {
if (StringUtils.isNotBlank(client.getClientName())) {
return client.getClientName();
}
Expand All @@ -998,7 +1012,7 @@ public String getClientDisplayName() {
}

return "Unknown";
}
}

public String getAuthReqId() {
return authReqId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<h:outputFormat
value="#{msgs['authorize.requestingPermissionForScopes']}">
<f:param
value="#{authorizeAction.clientDisplayName}" />
value="#{authorizeAction.getClientDisplayName(client)}" />
</h:outputFormat>
</p>
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def destroy(self, configurationAttributes):
return True

def getApiVersion(self):
return 1
return 11

# Main consent-gather method. Must return True (if gathering performed successfully) or False (if fail).
# All user entered values can be access via Map<String, String> context.getPageAttributes()
Expand Down

0 comments on commit f82a14e

Please sign in to comment.