Copied to clipboard

Flag this post as spam?

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


  • Terry Clancy 204 posts 944 karma points
    Jan 15, 2016 @ 07:10
    Terry Clancy
    0

    Bug with ASP.Net Identity for Umbraco: 'IAppBuilder' does not contain a definition for 'UseUmbracoBackAuthentication'

    Hi all,

    I have a bug using "ASP.Net Identity for Umbraco" which I installed on Umbraco 7.3.4 using Nuget with "Install-Package UmbracoIdentity". See https://github.com/Shazwazza/UmbracoIdentity/ for more info.

    After installing this software "Member" Login is working correctly using the supplied "Account.cshtml" page :-)

    However BackOffice login is failing :-(

    As suggested at

    https://github.com/Shazwazza/UmbracoIdentity/wiki/Startup-Configuration
    

    I am trying to call the following in my Startup Class:

        //Ensure owin is configured for Umbraco back office authentication
        app.UseUmbracoBackAuthentication();
    

    but that causes the following error:

    C:\Clancy\A_TeraTastic\Dev\TeraTastic05\TeraTastic\Startup.cs(19,17,19,45): error CS1061: 
    'IAppBuilder' does not contain a definition for 'UseUmbracoBackAuthentication' 
    and no extension method 'UseUmbracoBackAuthentication' accepting a first argument of type 'IAppBuilder' could be found 
    (are you missing a using directive or an assembly reference?)
    

    Any suggestions as to what the problem is or how to solve it would be very much appreciated.

    Thanks

    Terry Clancy

    ClanceZ

  • Alex Lindgren 159 posts 356 karma points
    Jan 15, 2016 @ 22:14
    Alex Lindgren
    0

    Are you also using Umbraco Identity Extensions?

    https://www.nuget.org/packages/UmbracoCms.IdentityExtensions

    Not sure if this addresses your issue, but I think this comment might be relevant:

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/73192-73-identity-issues#comment-234717

  • Terry Clancy 204 posts 944 karma points
    Jan 16, 2016 @ 22:12
    Terry Clancy
    100

    Hi all,

    The specific bug I mentioned above was due to a typo in the UmbracoIdentity documentation.

    As detailed at https://github.com/Shazwazza/UmbracoIdentity/issues/32 Shazwazza has fixed that problem at https://github.com/Shazwazza/UmbracoIdentity/wiki/Startup-Configuration by changing

    app.UseUmbracoBackAuthentication();

    to read

    app.UseUmbracoBackOfficeCookieAuthentication(ApplicationContext.Current);

    That got me past that issue but as detailed at https://github.com/Shazwazza/UmbracoIdentity/issues/35 I am now struggling with another issue :-)

    Terry Clancy

    ClanceZ

  • 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