You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a problem, using latest version on Umbraco 8, and trying to connect to an IdentityServer 4.
We have been on this for 2 full days, with 2 developers.
We never hit the ExternalCallback action.
We try to get OwinContext.Authentication.GetExternalLoginInfoAsync() but it always return null
As a note, the login into IdentityServer works. We get the tokens back, and all seem to work from there. But we do not get the external cooke back inside ConfigureUmbracoAuthentication.
It only returns
Context.Response.Headers[2].Key = "Set-Cookie"
Context.Response.Headers[2].Value = "OpenIdConnect.nounce.xxxxxxxxxxx=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT; secure; HttpOnly; SameSite=None"
So it seems that the connection between IdentiyServer and UmbracoIdentity is off.
Code at the bottom of the post.
Is there something special regarding the setup to get IdentityServer up and running with UmbracoIdentity?
`cookieOptions.Provider = new CookieAuthenticationProvider
{
// Enables the application to validate the security stamp when the user
// logs in. This is a security feature which is used when you
// change a password or add an external login to your account.
OnValidateIdentity = SecurityStampValidator
.OnValidateIdentity<UmbracoMembersUserManager, UmbracoApplicationMember, int>(
TimeSpan.FromMinutes(30),
(manager, user) => user.GenerateUserIdentityAsync(manager),
identity => identity.GetUserId())
};
app.UseCookieAuthentication(cookieOptions, PipelineStage.Authenticate);
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
app.UseIdentityServer2Authentication(.........);
`
Best regards
Vidar
The text was updated successfully, but these errors were encountered:
Hi Shazwazza!
Thanks for creating this cool package!
We have a problem, using latest version on Umbraco 8, and trying to connect to an IdentityServer 4.
We have been on this for 2 full days, with 2 developers.
As a note, the login into IdentityServer works. We get the tokens back, and all seem to work from there. But we do not get the external cooke back inside ConfigureUmbracoAuthentication.
It only returns
Context.Response.Headers[2].Key = "Set-Cookie"
Context.Response.Headers[2].Value = "OpenIdConnect.nounce.xxxxxxxxxxx=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT; secure; HttpOnly; SameSite=None"
So it seems that the connection between IdentiyServer and UmbracoIdentity is off.
Code at the bottom of the post.
Is there something special regarding the setup to get IdentityServer up and running with UmbracoIdentity?
`private static OpenIdConnectAuthenticationOptions CreateOidc(string providerName, string clientId, string authority, string redirectUri, string endpoint)
{
`cookieOptions.Provider = new CookieAuthenticationProvider
{
// Enables the application to validate the security stamp when the user
// logs in. This is a security feature which is used when you
// change a password or add an external login to your account.
OnValidateIdentity = SecurityStampValidator
.OnValidateIdentity<UmbracoMembersUserManager, UmbracoApplicationMember, int>(
TimeSpan.FromMinutes(30),
(manager, user) => user.GenerateUserIdentityAsync(manager),
identity => identity.GetUserId())
};
app.UseCookieAuthentication(cookieOptions, PipelineStage.Authenticate);
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
app.UseIdentityServer2Authentication(.........);
`
Best regards
Vidar
The text was updated successfully, but these errors were encountered: