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 groups query customization #352

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

tim-schilling
Copy link
Member

  • Consolidate request handling logic into helper method.
  • Support a querystring to filter groups.

Replaces #274
Fixes #272

The _ms_request conslidates the error handling logic into
a single method. This should make overriding methods easier
for end users.

logger.debug("Getting access token at: %s", provider_config.token_endpoint)
response = provider_config.session.post(provider_config.token_endpoint, data, timeout=settings.TIMEOUT)
def _ms_request(self, action, url, data=None, **kwargs):
Copy link

Choose a reason for hiding this comment

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

I tried running this code, there no handling for params and headers in request

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you share your code in a gist or a link to your repo with the change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you share your code in a gist or a link to your repo with the change?

Copy link

Choose a reason for hiding this comment

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

Copy link
Member Author

@tim-schilling tim-schilling Oct 23, 2024

Choose a reason for hiding this comment

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

That doesn't appear to be using this change.

@tim-schilling tim-schilling merged commit 9415d8a into main Oct 23, 2024
25 of 26 checks passed
@tim-schilling tim-schilling deleted the support-groups-customization branch October 23, 2024 23:52
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.

get_group_memberships_from_ms_graph returns only first 100 users
3 participants