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
This PR was merged into the 0.1-dev branch.
Discussion
----------
Improve update command
The previous command used to use the "set" way to deal with relationships.
As an example, `--scope` option was used to define every scope that will be linked to a client.
This meant that if the `--scope` option was not provided, the command thought that `[]` was the wanted scopes.
The new approach is to use the "add/remove" way instead.
I also added the possibility to activate a client (before we only could deactivate it)
So here is the new command behavior:
```
Description:
Updates an oAuth2 client
Usage:
league:oauth2-server:update-client [options] [--] <identifier>
Arguments:
identifier The client identifier
Options:
--add-redirect-uri=ADD-REDIRECT-URI Add allowed redirect uri to the client. (multiple values allowed)
--remove-redirect-uri=REMOVE-REDIRECT-URI Remove allowed redirect uri to the client. (multiple values allowed)
--add-grant-type=ADD-GRANT-TYPE Add allowed grant type to the client. (multiple values allowed)
--remove-grant-type=REMOVE-GRANT-TYPE Remove allowed grant type to the client. (multiple values allowed)
--add-scope=ADD-SCOPE Add allowed scope to the client. (multiple values allowed)
--remove-scope=REMOVE-SCOPE Remove allowed scope to the client. (multiple values allowed)
--activate Activate the client.
--deactivate Deactivate the client.
```
Commits
-------
44fbdb7 Improve update command
--add-redirect-uri=ADD-REDIRECT-URI Add allowed redirect uri to the client. (multiple values allowed)
48
+
--remove-redirect-uri=REMOVE-REDIRECT-URI Remove allowed redirect uri to the client. (multiple values allowed)
49
+
--add-grant-type=ADD-GRANT-TYPE Add allowed grant type to the client. (multiple values allowed)
50
+
--remove-grant-type=REMOVE-GRANT-TYPE Remove allowed grant type to the client. (multiple values allowed)
51
+
--add-scope=ADD-SCOPE Add allowed scope to the client. (multiple values allowed)
52
+
--remove-scope=REMOVE-SCOPE Remove allowed scope to the client. (multiple values allowed)
53
+
--activate Activate the client.
54
+
--deactivate Deactivate the client.
65
55
```
66
56
67
57
### Delete a client
@@ -89,10 +79,10 @@ Usage:
89
79
league:oauth2-server:list-clients [options]
90
80
91
81
Options:
92
-
--columns[=COLUMNS] Determine which columns are shown. Comma separated list. [default: "identifier, secret, scope, redirect uri, grant type"]
93
-
--redirect-uri[=REDIRECT-URI] Finds by redirect uri for client. Use this option multiple times to filter by multiple redirect URIs. (multiple values allowed)
94
-
--grant-type[=GRANT-TYPE] Finds by allowed grant typefor client. Use this option multiple times to filter by multiple grant types. (multiple values allowed)
95
-
--scope[=SCOPE] Finds by allowed scope for client. Use this option multiple times to find by multiple scopes. (multiple values allowed)__
82
+
--columns=COLUMNS Determine which columns are shown. Comma separated list. [default: "identifier, secret, scope, redirect uri, grant type"]
83
+
--redirect-uri=REDIRECT-URI Finds by redirect uri for client. Use this option multiple times to filter by multiple redirect URIs. (multiple values allowed)
84
+
--grant-type=GRANT-TYPE Finds by allowed grant typefor client. Use this option multiple times to filter by multiple grant types. (multiple values allowed)
85
+
--scope=SCOPE Finds by allowed scope for client. Use this option multiple times to find by multiple scopes. (multiple values allowed)__
0 commit comments