-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add client metadata + API #2488
Conversation
@@ -280,3 +280,273 @@ type OpenID4VCIFields struct { | |||
PreAuthorizedGrantAnonymousAccessSupported bool `json:"pre-authorized_grant_anonymous_access_supported"` | |||
//OPTIONAL. A JSON Boolean indicating whether the issuer accepts a Token Request with a Pre-Authorized Code but without a client id. The default is false. | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a scratch pad with comments useful during development
auth/api/iam/metadata.go
Outdated
softwareID, softwareVersion, _ := strings.Cut(core.UserAgent(), "/") | ||
return OAuthClientMetadata{ | ||
//RedirectURIs: nil, | ||
TokenEndpointAuthMethod: "client_secret_basic", // TODO: this is the default value, what do we support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing it would become vp_token-bearer
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would require defining a client assertion type using the vp_token next to the grant_type similar to RFC7523 describing a
urn:ietf:params:oauth:client-assertion-type:jwt-bearer
and
urn:ietf:params:oauth:grant-type:jwt-bearer
TokenEndpointAuthMethod: "client_secret_basic", // TODO: this is the default value, what do we support | ||
GrantTypes: grantTypesSupported, | ||
ResponseTypes: responseTypesSupported, | ||
//Scope: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left them as comments to see what fields still need to added, but I will remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left the remaining values commented. They either need to be set by the time these flows are implmented or removed.
b0b2023
to
0b84dfd
Compare
I tried to fill out as much as possible, but there are still a bunch of unknowns (tagged with TODOs). I've skipped all the fields related to openid connect / id_token for now. We can add these as needed.