Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

IdentityAdmin vs IdentityManager #71

Open
BruceHunter opened this issue Jul 11, 2017 · 2 comments
Open

IdentityAdmin vs IdentityManager #71

BruceHunter opened this issue Jul 11, 2017 · 2 comments

Comments

@BruceHunter
Copy link

BruceHunter commented Jul 11, 2017

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

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 AdminHostSecurityConfiguration (Admin)
using HostSecurityConfiguration (Manager)

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 Admin all is well. Local Storage is good and Cookie is created.

If you jump over to the Manager 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 manager. 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 LocalStorage 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.

@iBoonz
Copy link
Contributor

iBoonz commented Jul 29, 2017

Do the cookies have different names? :)

@BruceHunter
Copy link
Author

BruceHunter commented Jul 29, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants