You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
The RegisteredClientRepository should have the ability to change the client secret of an existing client.
Current Behavior
In version 0.2.1 the ability was removed because in prior versions the secret was encoded twice. The Bug and PR are reported in issue #389.
Context
I have a adminstration UI for the clients where it should be possible to edit the secret without deleting and adding the client again especially because there is no delete method on default.
Solution Proposal
The following is a proposal of my solution which is based on the "old" authroization server where changing the client secret is an extra method.
As you can see the secret will be encoded in this solution. If its already encoded it will be encoded twice. But, because this is an extra method the calling method can decide to not call it.
@GrmpfNarf Adding a new operation updateRegisteredClientClientSecret() in RegisteredClientRepository would be redundant as the save() operation could handle it - if implemented.
FYI, the default implementations of RegisteredClientRepository - InMemoryRegisteredClientRepository and JdbcRegisteredClientRepository - are intended to be simple implementations to allow applications to get up and running quickly.
For more advanced use cases, e.g. administration UI for editing clients, this is the responsibility of the application to implement. This project is solely concerned with implementing the protocol implementations as defined by the various specifications. Client editing capabilities via an admin UI is not a feature concern for this project and would therefore not be implemented. This really should be implemented in the application (product) that builds on top of this framework.
Expected Behavior
The
RegisteredClientRepository
should have the ability to change the client secret of an existing client.Current Behavior
In version 0.2.1 the ability was removed because in prior versions the secret was encoded twice. The Bug and PR are reported in issue #389.
Context
I have a adminstration UI for the clients where it should be possible to edit the secret without deleting and adding the client again especially because there is no delete method on default.
Solution Proposal
The following is a proposal of my solution which is based on the "old" authroization server where changing the client secret is an extra method.
As you can see the secret will be encoded in this solution. If its already encoded it will be encoded twice. But, because this is an extra method the calling method can decide to not call it.
Example of usage:
Whould be nice if something like that will be in one of the further implementations.
The text was updated successfully, but these errors were encountered: