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 for listing authenticators and deleting specific authenticator #698

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

czf
Copy link

@czf czf commented Dec 29, 2023

Changes

Adding support for listing authenticators and deleting specific authenticator

Added new methods to authentication client to support the API endpoints
Added request/response classes

References

Please include relevant links supporting this change such as a:
resolves #696
resolves #697

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@czf czf requested a review from a team as a code owner December 29, 2023 02:03
Comment on lines 508 to 516
if (string.IsNullOrEmpty(request.AccessToken))
{
throw new InvalidOperationException($"{nameof(request.AccessToken)} is required");
}

if (string.IsNullOrEmpty(request.AuthenticatorId))
{
throw new InvalidOperationException($"{nameof(request.AuthenticatorId)} is required");
}
Copy link
Member

Choose a reason for hiding this comment

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

We do not need to introduce this kind of validation here.Currently, we rely on the backend to tell us if something is missing, mainly because it isn't always clear what is and isnt required.

Copy link
Author

Choose a reason for hiding this comment

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

removed this

@frederikprijck
Copy link
Member

Can we also add some consistency around naming here? ListAuthenticatorsAsync vs DeleteMfaAuthenticatorAsync seems inconsistent and I would recommend to use ListMfaAuthenticatorsAsync.

@czf
Copy link
Author

czf commented Jan 11, 2024

Can we also add some consistency around naming here? ListAuthenticatorsAsync vs DeleteMfaAuthenticatorAsync seems inconsistent and I would recommend to use ListMfaAuthenticatorsAsync.

renamed to ListMfaAuthenticatorsAsync

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.

Implement get mfa/authenticators endpoint Implement delete mfa/authenticators endpoint
2 participants