fastapi-azure-auth
fastapi-azure-auth copied to clipboard
Two authentication method in one App
Thanks:)
Hi Jonas,
I am getting this error in PR fix end of files.........................................................Passed trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook
Fixing docs/docs/multi-tenant/azure_setup.mdx Fixing docs/docs/single-tenant/azure_setup.mdx
Not sure how to fix it. Could you please advise.
Thanks
Thank you π
EDIT: Edit: ohhh, I see, the pipeline fails. It is because we use pre-commit. If you have pre-commit locally, you can write pre-commit install
. Whenever you commit, it will automatically run all the lints and fix these things. The hook failing now, fails because there is missing an empty line at the end of the file (as is standard in Python). If you run pre-commit locally, it would fix it for you, and my answer below would be correct π
You can read about pre-commit in the CONTRIBUTING.md file π
The files have probably been fixed, but you need to git add
them again, since they've changed. pre-commit
only runs on staged files (files you've added to the commit), so when you:
- add a file
- run pre-commit
- pre-commit changes a file
- write git status
You'll see that the change made by pre-commit isn't staged.
As a side note: I'm at the airport, going to PyCon and a little vacation, so it might take a while before I get to review this PR π
Thanks alot, no rush at all, Enjoy your vacation and no work please:) I will do it through git command on Monday (Friday night in New Zealand). Today I did it through the github website.
Have a safe trip:)
Cheers Mohsen
On Fri, 14 Apr 2023, 18:51 Rhuan Barreto, @.***> wrote:
@.**** commented on this pull request.
In docs/docs/multi-tenant/azure_setup.mdx https://github.com/Intility/fastapi-azure-auth/pull/128#discussion_r1166361845 :
@@ -3,14 +3,20 @@ title: Azure configuration sidebar_position: 1
-We'll need to create two application registrations for Azure AD authentication to cover both direct API -use and usage from the OpenAPI (swagger) documentation. +We'll need to create two authentication methods for Azure AD authentication to cover both direct API use and usage from the OpenAPI (swagger) documentation. We can achieve this goal in two ways: +
+
- Create two different Azure Apps
+- Create one Azure App with two (an App can have mutile authentication method) authentication methods
β¬οΈ Suggested change
-
- Create one Azure App with two (an App can have mutile authentication method) authentication methods
+- Create one Azure App with two (an App can have multiple authentication methods) authentication methods
β Reply to this email directly, view it on GitHub https://github.com/Intility/fastapi-azure-auth/pull/128#pullrequestreview-1384721586, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2EOQMOGKFAJNIFXCWAHAQ3XBDXYJANCNFSM6AAAAAAW5ZDEYU . You are receiving this because you authored the thread.Message ID: @.***>
Hey @mohsspark829 π I have not forgot about this, but have not found the time. I'll try to get back to you soon.
Hey Jonas, great to hear from you:) Sure, thanks, if you need any additional materials, please let me know. Have a great weekend.
Cheers Mohsen
On Sat, 20 May 2023, 04:00 Jonas KrΓΌger Svensson, @.***> wrote:
Hey @mohsspark829 https://github.com/mohsspark829 π I have not forgot about this, but have not found the time. I'll try to get back to you soon.
β Reply to this email directly, view it on GitHub https://github.com/Intility/fastapi-azure-auth/pull/128#issuecomment-1554790821, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2EOQMIKCDQWW3QB5O7ARPLXG6KKXANCNFSM6AAAAAAW5ZDEYU . You are receiving this because you were mentioned.Message ID: @.***>
I appreciate your PRs, and I'm sorry I have to close them, but the diff between these and main has diverged too much.