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

feat: Add minimal client implementation for auth services #76

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

Conversation

Giriharan219
Copy link
Collaborator

What does this Pull Request accomplish?

This PR adds some client methods for auth endpoints and testing for these endpoints.

Why should this Pull Request be merged?

This Minimal client for auth APIs will enable users to more easily interact with that APIs.

What testing has been done?

Auto testing is included against NI's test tier.

API Link: Swagger-link

@Giriharan219 Giriharan219 added the enhancement New feature or request label Oct 30, 2024
@Giriharan219 Giriharan219 changed the title Feat: Add minimal client implementation for auth services feat: Add minimal client implementation for auth services Oct 30, 2024
nisystemlink/clients/auth/utilities.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/utilities.py Outdated Show resolved Hide resolved
from . import models


class AuthClient(BaseClient):
Copy link
Member

Choose a reason for hiding this comment

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

Naming this AccessControlClient makes it intuitive and clubs the related feature across multiple services under the same client.
@mure, @spanglerco, @cameronwaterman - please share your thoughts

nisystemlink/clients/auth/_auth_client.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/_auth_client.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/utilities.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/models/_auth_models.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/models/_auth_models.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/models/_auth_models.py Outdated Show resolved Hide resolved
nisystemlink/clients/auth/models/_auth_models.py Outdated Show resolved Hide resolved
@Giriharan219 Giriharan219 force-pushed the users/gravichandran/add-auth-client branch from 627888a to 5d0f4bf Compare November 5, 2024 16:50
@Giriharan219 Giriharan219 force-pushed the users/gravichandran/add-auth-client branch from 5d0f4bf to ad7e3f0 Compare November 5, 2024 16:58
@Giriharan219 Giriharan219 force-pushed the users/gravichandran/add-auth-client branch from 5e854a2 to b6b1c51 Compare November 7, 2024 07:03
@Giriharan219 Giriharan219 force-pushed the users/gravichandran/add-auth-client branch from b6b1c51 to bfd9308 Compare November 7, 2024 13:09
@ChrisStrykesAgain
Copy link

Most of this functionality seems pretty core to the fundamental operations. Would it make more sense to bake this into a base class shared across the various APIs instead of having an explicit API just for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants