Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Topic author was deleted

    Dec 11, 2015 @ 13:05

    7.3.4 - Disable default login when Azure AD is enabled

    I've successfully added Azure authentication (very thankful for this new feature btw!). However I wonder how I can disable the default login.

    As of now the users can choose to "Sign in with Active Directory" OR username and password. I wish to have Azure AD exclusively.

    My startupconfig:

    //ensure the default options are configured
    base.Configuration(app);
    
    string TenantID = "XXXX";
    string ClientID = "YYYYYY";
                app.ConfigureBackOfficeAzureActiveDirectoryAuth(TenantID,ClientID, "http://XXXXX/umbraco#/umbraco",new System.Guid(TenantID));
    
  • Ian 178 posts 752 karma points
    Dec 12, 2015 @ 11:55
    Ian
    0

    Hi viktor if you are just talking about disabling the local login fields whilst your active directory login appears as an external logn source i dont think you can. If you look at the source of the login screen see here https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html . the angular userservice is used to render the login screen and this view is used, which you can see contains static content for local login fields. See the userservice here https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/common/services/user.service.js

  • Ian 178 posts 752 karma points
    Dec 17, 2015 @ 16:15
    Ian
    0

    I'm just looking at doing something else in angular and coming across the use of interceptors. I just stumbled on this https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/53697-Extending-Login-Screen which might give you the possibility of creating your own view without the local login form.

  • 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.

Please Sign in or register to post replies