Copied to clipboard

Flag this post as spam?

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


  • Newbraco 41 posts 164 karma points
    Apr 09, 2018 @ 20:13
    Newbraco
    0

    Umbraco Identity: "There are no external authentication services configured..." error message

    Im following this guide: https://github.com/Shazwazza/UmbracoIdentity (->3 step installation)

    When I was down and went to http://localhost:xxxxx/Account I did get a similar page as shown in the link, but where I expected the good stuff there was only an error message "There are no external authentication services configured..." (see pic below, text to the right, compare with pic on the link)

    enter image description here

    Anyone that has experienced this or know how to get for example facebook login to work?

  • Mila Pandurska 43 posts 190 karma points
    Apr 10, 2018 @ 21:20
    Mila Pandurska
    101

    Hi, You have to add the configuration for the social network in UmbracoIdentityStartup.cs class. You will see there something like this:

    namespace MyApp.Web.App_Start
    {
        /// <summary>
        /// OWIN Startup class for UmbracoIdentity 
        /// </summary>
        public class UmbracoIdentityStartup : UmbracoDefaultOwinStartup
        {
            /// <summary>
            /// Configures services to be created in the OWIN context (CreatePerOwinContext)
            /// </summary>
            /// <param name="app"/>
            protected override void ConfigureServices(IAppBuilder app)
            {
                base.ConfigureServices(app);
    
                //Single method to configure the Identity user manager for use with Umbraco
                app.ConfigureUserManagerForUmbracoMembers<UmbracoApplicationMember>();
    
                //Single method to configure the Identity user manager for use with Umbraco
                app.ConfigureRoleManagerForUmbracoMembers<UmbracoApplicationRole>();
            }
    
            /// <summary>
            /// Configures middleware to be used (i.e. app.Use...)
            /// </summary>
            /// <param name="app"/>
            protected override void ConfigureMiddleware(IAppBuilder app)
            {
               ..............
                // Uncomment the following lines to enable logging in with third party login providers
    
                app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
    
                //app.UseMicrosoftAccountAuthentication(
                //  clientId: "",
                //  clientSecret: "");
    
                //app.UseTwitterAuthentication(
                //  consumerKey: "",
                //  consumerSecret: "");
    
                //app.UseFacebookAuthentication(
                //  appId: "",
                //  appSecret: "");            
    
                //app.UseGoogleAuthentication(
                //  clientId: "",
                //  clientSecret: "");
    
                //Lasty we need to ensure that the preview Middleware is registered, this must come after
                // all of the authentication middleware:
                app.UseUmbracoPreviewAuthentication(ApplicationContext, PipelineStage.Authorize);
            }
        }
    }
    

    If you need facebook login then you need to uncomment //app.UseFacebookAuthentication( // appId: "", // appSecret: "");
    and set your appId and appSecret which you can get from https://developers.facebook.com/ In order to make this working you have to add referance to using Microsoft.Owin.Security.Facebook in your VS project

    Regards Mila

  • Newbraco 41 posts 164 karma points
    Apr 11, 2018 @ 14:40
    Newbraco
    0

    Hi Mila

    Thank you very much for helping me out! :)

Please Sign in or register to post replies

Write your reply to:

Draft