Authx - Add APIv4 support for creating and validating credentials #26044
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Add APIv4 actions for creating login credentials (as JWT) and validating login credentials (without actually logging in).
(Builds on @seamuslee001's #25992. But it makes several changes -- I'm posting under diff PR# so we can pick/discuss if some are more interesting or controversial than others.)
Before
N/A
After
Defines API
AuthxCredential.create
, as in:Defines API
AuthxCredential.validate
, as in:cv api4 -U validate-user AuthxCredential.validate checkPermissions=1 cred="$(cv api4 -IU auth-user AuthxCredential.create contactId=203 checkPermissions=1)"
Technical Details
For
r-run
, I used this setup script:And then these example commands (note: they're long - scroll horizontally):