Skip to content

Dcr#56

Open
ImMilan123 wants to merge 4 commits intoadobe:mainfrom
ImMilan123:DCR
Open

Dcr#56
ImMilan123 wants to merge 4 commits intoadobe:mainfrom
ImMilan123:DCR

Conversation

@ImMilan123
Copy link

@ImMilan123 ImMilan123 commented Feb 3, 2026

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Collaborator

@telegrapher telegrapher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at the general organization of the CLI code.

In the cmd package we setup all the parameters, all the cobra concerns. But then, we call the code in the ims package, where we perform all the requests as needed.

For your command, it seems a bit of overkill, but for our more complex tools having everything together was creating problems.

So, please, for consistency, organize your code the same way.


cmd := &cobra.Command{
Use: "register",
Short: "Register a dynamic client.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The client is not dynamic.

You use Dynamic Client Registration to dynamically create clients.

cmd := &cobra.Command{
Use: "register",
Short: "Register a dynamic client.",
Long: `Register a new OAuth 2.0 client dynamically using OIDC Dynamic Client Registration.`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mention OIDC.

I would not mention "dynamically".

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not mention 2.0 either, the server may be using OAuth 2.1 :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants