Can anyone let me know on how to access Umbraco services like logger service , member service, user service in start up class file. I want to assign a different role based on the claims I receive from external identity like Azure active directory.
public partial class Startup
{
public void ConfigureAuth(IAppBuilder app)
{
adOptions.SetExternalSignInAutoLinkOptions(
new ExternalSignInAutoLinkOptions(autoLinkExternalAccount: true, defaultUserGroups: null, defaultCulture: null)
{
OnAutoLinking = (user, externalLogin) => {
}
,OnExternalLogin = (user, externalLogin) => {
return true;
}
});
}
}
Accessing Umbraco services in startup class.
Hi,
Can anyone let me know on how to access Umbraco services like logger service , member service, user service in start up class file. I want to assign a different role based on the claims I receive from external identity like Azure active directory.
Hi Nagarjuna,
You can consume services like this
Example
Userservice
Regards Dhanesh :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.