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

Add support for Azure AD #2

Open
eloekset opened this issue Jul 19, 2020 · 3 comments
Open

Add support for Azure AD #2

eloekset opened this issue Jul 19, 2020 · 3 comments
Assignees

Comments

@eloekset
Copy link
Owner

Same as PiranhaCMS#267 in the main repo

@eloekset eloekset self-assigned this Jul 19, 2020
@eloekset
Copy link
Owner Author

eloekset commented Aug 8, 2020

One thing that is very tricky is that as long as Piranha.AspNetCore.Identity.SQLite is referenced by MvcWeb (or another Piranha application) it will override AzureAD authentication, and presents the Piranha login screen. I haven't figured out why that happens, but since I removed that dependency, the redirect to Azure AD for authentication works:
image

Since the App Registration in AD isn't complete yet, I don't get the necessary permissions, so I end up in a redirect loop. So configuring permissions and roles in Azure AD is the next step.

@eloekset
Copy link
Owner Author

Looks like all the fine grained permission claims needs a different treatment with Azure AD: https://stackoverflow.com/a/58907198/1421847

@eloekset
Copy link
Owner Author

Small update this evening. I've got rid of the redirect loop issue, but claims are still not configured correctly so the user doesn't get permission to use Manager after the token is retrieved. Result:
image

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

No branches or pull requests

1 participant