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 :-)
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.
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
I am trying to call the following in my Startup Class:
but that causes the following error:
Any suggestions as to what the problem is or how to solve it would be very much appreciated.
Thanks
Terry Clancy
ClanceZ
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
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
is working on a reply...