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

Support additional metadata fields like logo_uri, client_uri, policy_uri, etc. #151

Open
5 tasks done
markusheinemann opened this issue Oct 4, 2024 · 1 comment
Open
5 tasks done
Labels
feat New feature or request.

Comments

@markusheinemann
Copy link

markusheinemann commented Oct 4, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

The Hydra endpoint to create OAuth2 clients currently supports some more properties as covered by hydra-maester CRDs. Therefore, clients with metadata attributes such as logo_uri, contacts or policy_uri cannot be created.

Describe your ideal solution

Ideally, the CRDs cover all fields that are provided by the API endpoint.

A quick check of OAuth2ClientJSON and the Hydra OpenAPI spec shows that the following fields are missing:

  • access_token_strategy
  • client_secret_expires_at
  • client_uri
  • contacts
  • created_at
  • logo_uri
  • policy_uri
  • refresh_token_grant_refresh_token_lifespan
  • registration_access_token
  • registration_client_uri
  • request_object_signing_alg
  • request_uris
  • sector_identifier_uri
  • skip_logout_consent
  • subject_type
  • token_endpoint_auth_signing_alg
  • tos_uri
  • updated_at
  • userinfo_signed_response_alg

Idk if it really makes sense to cover all fields (e.g. created_at, updated_at) but it would be definitely helpful to cover the missing metadata fields (e.g. logo_uri, policy_uri, tos_uri, contacts).

Workarounds or alternatives

Currently I'm creating the clients without the mentioned fields.

Version

0.0.34-arm64

Additional Context

If there is an idea which fields should be covered, I can take care of the implementation

@markusheinemann markusheinemann added the feat New feature or request. label Oct 4, 2024
@markusheinemann
Copy link
Author

markusheinemann commented Oct 4, 2024

After a little bit of browsing the source code, I saw that the property owner is used in another way.

if fetched.Owner != fmt.Sprintf("%s/%s", oauth2client.Name, oauth2client.Namespace) {

It might be a good idea to move this to a custom metadata property to allow users using the owner property for another purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant