Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ public enum TokenEndpointAuthMethod {
/** Client secret post type. */
// CLIENT_SECRET_JWT("client_secret_jwt"), todo uncomment as we add suppot
/** Client secret basic type. */
PRIVATE_KEY_JWT("private_key_jwt");
PRIVATE_KEY_JWT("private_key_jwt"),
/** None type. */
// NONE("none");
NONE("none");

private String type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ public JsonValue createRegistration(String accessToken, String deploymentUrl, OA
throw new InvalidClientMetadata("Invalid scopes requested");
}
} else { //if nothing requested, fall back to provider defaults
scopes = new ArrayList<String>();
scopes = new ArrayList<>();
scopes.addAll(providerSettings.getDefaultScopes());
}

//regardless, we add openid
if (!scopes.contains(OPENID)) {
scopes = new ArrayList<String>(scopes);
if (scopes.isEmpty()) {
scopes = new ArrayList<>();
scopes.add(OPENID);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<ServicesConfiguration>
<Service name="AgentService" version="1.0">
<Schema i18nFileName="agentService" revisionNumber="10">
<Schema i18nFileName="agentService" revisionNumber="11">
<Organization>
<SubSchema name="OAuth2Client" inheritance="multiple" i18nKey="a7001" hideConfigUI="yes">
<AttributeSchema
Expand Down Expand Up @@ -181,6 +181,7 @@
<ChoiceValue i18nKey="a741">client_secret_basic</ChoiceValue>
<!-- <ChoiceValue i18nKey="a742">client_secret_jwt</ChoiceValue> -->
<ChoiceValue i18nKey="a743">private_key_jwt</ChoiceValue>
<ChoiceValue>none</ChoiceValue>
</ChoiceValues>
<DefaultValues>
<Value>client_secret_basic</Value>
Expand Down
Loading