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

fix: make tid and oid optional to allow User validation in B2C #145

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

davidhuser
Copy link
Contributor

This PR is a continuation of PR #141 and was recreated to make the PR more straightforward. It makes tid and oid claims optional so that B2C auth works.

@davidhuser
Copy link
Contributor Author

davidhuser commented Jul 31, 2023

still openAPI schema test errors for Pydantic 2.x test envs, PR based on latest main with minimal code changes in the PR. Ideas what it could be @enadeau or @JonasKs ?

@JonasKs
Copy link
Member

JonasKs commented Jul 31, 2023

Ah, yes the test needs to be updated now, since the model changes. So run the test and see the new output, and update the output to that. The openapi-test reflects the model. 😊

Edit: in other words, update the openapi_scheme variable

@enadeau
Copy link
Contributor

enadeau commented Jul 31, 2023

@davidhuser It only fails on 2.x because that is the only version of pydantic we run this test on.

@JonasKs
Copy link
Member

JonasKs commented Jul 31, 2023

No idea why codecov suddenly fails now.. Looks good to me, though! Thanks :)

@JonasKs JonasKs merged commit d4d185f into Intility:main Jul 31, 2023
14 of 15 checks passed
@JonasKs
Copy link
Member

JonasKs commented Jul 31, 2023

I've created a release, will be live when pipelines pass! Thanks for the contribution.

https://github.com/Intility/fastapi-azure-auth/releases/tag/4.2.0

nikstuckenbrock pushed a commit to nikstuckenbrock/fastapi-azure-auth that referenced this pull request Oct 16, 2023
…ity#145)

* fix: make  and  optional to allow User validation in B2C

* fix: adjust testing the openapi schema with optional tid and oid claims
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.

3 participants