Umbraco.Community.AzureSSO not working in v13
# help-with-umbraco
d
Hi All, Im using v2.2.0 Umbraco.Community.AzureSSO in my umbraco v13.5.2 project. I have set it up like below:
Copy code
"AzureSSO": {
  "Credentials": {
    "Instance": "https://login.microsoftonline.com/",
    "Domain": "https://localhost:44379/",
    "TenantId": "<tenantId>",
    "ClientId": "<clientId>",
    "CallbackPath": "/umbraco-microsoft-signin/",
    "SignedOutCallbackPath ": "/umbraco-microsoft-signout/",
    "ClientSecret": "<clientSecret>"
  },
  "DisplayName": "Azure AD",
  "DenyLocalLogin": true,
  "Icon": "icon-microsoft-fill",
  "ButtonStyle": "btn-microsoft"
}
Using the above settings, I get the Azure AD login button. On click of the button, I'm being redirected to https://localhost:44379/umbraco#/undefined after entering the Microsoft credentials and I can't see any content in the backoffice. Am I missing something? Please help
I figured it out. It needs to have this "DefaultGroups": [ "admin" ] in appsettings.json. After adding I can see the content. But this is not what I actually want. I want the user to have access to sections within backoffice based on the roles set in umbraco. How can I achieve this?
s
You can set the default group to a lower level (eg. a group you create yourself with no permissions at all), and then SetGroupsOnLogin to false. Then it wont override any backoffice group changes on each login, and your admin can assign groups to each user, once theyve logged in once.
d
Thank you @skttl! All is working fine now.
8 Views