Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

IdentityManager vs IdentityAdmin #270

Description

@BruceHunter

I setup Manager under https://localhost:44301/manager
I setup Admin under https://localhost:44301/admin

Each site is using Cookie Authentication with separate startup code.
Each site is using UseOpenIdConnectAuthentication
Each site is using AdditionalSignOutType "oidc"
Each site has their own cookie name.

using HostSecurityConfiguration (Manager)
using AdminHostSecurityConfiguration (Admin)

Admin has it's own Role name
Manager has it's own Role name

The user is given both roles in the IdSrv.

The issue is that if you login to Manager all is well. Local Storage is good and Cookie is created.

If you jump over to the Admin Url then you get an error. The cookie isn't created. You are forced to logout and then you hit back to login and all is well.

If you jump over to admin. The issue happens.

It seems to be an issue if these sites are under the same domain with sub virtual directories.

I don't think the cookie is the issue. I think that the Local Storage key that is created first is the issue and it should be a unique name.

I can solve the issue by separating these sites to manager.domain.com or admin.domain.com (But I don't want to do that)

I hope I was clear enough.
Does anyone know how to resolve this or is this a bug?

Also, I have another site where I'm just using local storage only with oidc-client-js and don't have this issue. Seems like the cookie creations process has failed me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions