Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credential Encryption Parameter Name Discrepancy #113

Closed
peppelinux opened this issue Nov 13, 2023 · 9 comments · Fixed by #136
Closed

Credential Encryption Parameter Name Discrepancy #113

peppelinux opened this issue Nov 13, 2023 · 9 comments · Fixed by #136
Assignees
Milestone

Comments

@peppelinux
Copy link
Member

In the credential request we have the parameter names for the credential response encryption, defined in the text as follows:

  • credential_encryption_jwk
  • credential_response_encryption_alg
  • credential_response_encryption_enc

credential_encryption_jwk does not include response_ in it. Me and other implementers are wondering if this is intentional and why.

If this is not intentional, WDYT if we change the name to credential_response_encryption_jwk, for naming normalization?

immagine

@peppelinux peppelinux changed the title Credential Encryption Parameter Name Discrepancy credential_encryption_* Credential Encryption Parameter Name Discrepancy Nov 13, 2023
@paulbastian
Copy link
Contributor

Does it make sense to group them together into a separate JSON object?

@Sakurann
Copy link
Collaborator

I agree it is cleaner to rename to credential_response_encryption_jwk unless @awoie there was a reason why you chose to omit _response here?
less sure about the grouping. it does not seem to be a convention in OAuth/OIDC, so we can probably leave as-is

@awoie
Copy link
Contributor

awoie commented Nov 30, 2023

No specific reason. I think it makes sense to rename it.

@awoie
Copy link
Contributor

awoie commented Nov 30, 2023

Does it make sense to group them together into a separate JSON object?

I used the same pattern that you can find here: https://openid.net/specs/openid-connect-discovery-1_0.html

@paulbastian
Copy link
Contributor

Does it make sense to group them into a single object?

@awoie
Copy link
Contributor

awoie commented Nov 30, 2023

Does it make sense to group them into a single object?

I would support that since the names will get shorter. OAuth2 and OP Metadata took a different path. If there was no technical reason why those aren't Objects, then I'd be in favor of changing this.

@paulbastian
Copy link
Contributor

Proposal:

"credential_response_encryption" : {
    "jwk" : {},
    "alg" : "...",
    "enc" : "..."
}

@Sakurann
Copy link
Collaborator

Sakurann commented Dec 8, 2023

@cobward is Spruce using these in production? Would you be ok with this breaking change? if so, I think we can try get this in before ID-1

@cobward
Copy link
Contributor

cobward commented Dec 13, 2023

We're fine with breaking changes at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants