Skip to content

Commit 9d7a4bc

Browse files
committed
Non-interactive action now uses lower case for non-header attibutes
1 parent 3ba36a9 commit 9d7a4bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/io/cos/cas/osf/web/flow/login/OsfPrincipalFromNonInteractiveCredentialsAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private OsfPostgresCredential constructCredentialsFromPac4jAuthentication(final
327327
final OsfPostgresCredential osfPostgresCredential = new OsfPostgresCredential();
328328
osfPostgresCredential.setRemotePrincipal(Boolean.TRUE);
329329
osfPostgresCredential.setDelegationProtocol(DelegationProtocol.CAS_PAC4J);
330-
osfPostgresCredential.getDelegationAttributes().put("Cas-Identity-Provider", clientName);
330+
osfPostgresCredential.getDelegationAttributes().put("cas-identity-provider", clientName);
331331
if (principal.getAttributes().size() > 0) {
332332
for (final Map.Entry<String, List<Object>> entry : principal.getAttributes().entrySet()) {
333333
final String attributeKey = entry.getKey();
@@ -485,7 +485,7 @@ private JSONObject extractInstnAuthnDataFromCredential(final OsfPostgresCredenti
485485
document.appendChild(rootElement);
486486

487487
final Element delegationProtocolAttr = document.createElement("attribute");
488-
delegationProtocolAttr.setAttribute("name", "Delegation-Protocol");
488+
delegationProtocolAttr.setAttribute("name", "delegation-protocol");
489489
delegationProtocolAttr.setAttribute("value", credential.getDelegationProtocol().getId());
490490
rootElement.appendChild(delegationProtocolAttr);
491491

0 commit comments

Comments
 (0)