I have an Identity, ‘aa65153ga’ which is set to the Operator’s role in PSU. When I first log on to PSU with the account there is no policy set to the Identity:
The moment I set the Role for account ‘aa65153ga’ to ‘Policy Defined’ I am unable to login with that account. The login page flashes once, but then the login fails. No error message
If I try to change the roleName to null, I am not allowed
Removing the identity and logging in again fixes the issue. But the moment I set the Identity to ‘Policy Defined’ I’m back to square one.
I’m using AD to validate the user logging in. PSU is not behind IIS.
Event View Log:
I get a CORS Policy execution failed error in the logs file:
2021-04-30T16:09:26.6944121-04:00 0HM8BVLMMUUIE:00000001 [INF] Executed endpoint '"/notificationhub"' (99874f2b)
2021-04-30T16:09:26.6947563-04:00 0HM8BVLMMUUIE:00000001 [INF] Request finished in 93983.3506ms 101 (791a596a)
2021-04-30T16:09:26.7078220-04:00 0HM8BVLMMUUID:00000002 [INF] Request starting HTTP/1.1 POST http://localhost:5000/notificationhub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 (ca22a1cb)
2021-04-30T16:09:26.7079900-04:00 0HM8BVLMMUUID:00000002 [INF] CORS policy execution failed. (09b6f179)
2021-04-30T16:09:26.7080026-04:00 0HM8BVLMMUUID:00000002 [INF] Request origin "http://localhost:5000" does not have permission to access the resource. (a03d560b)
2021-04-30T16:09:26.7090535-04:00 0HM8BVLMMUUID:00000002 [INF] Executing endpoint '"/notificationhub/negotiate"' (500cc934)
2021-04-30T16:09:26.7091811-04:00 0HM8BVLMMUUID:00000002 [INF] Executed endpoint '"/notificationhub/negotiate"' (99874f2b)
2021-04-30T16:09:26.7092130-04:00 0HM8BVLMMUUID:00000002 [INF] Request finished in 1.4114ms 200 application/json (791a596a)
2021-04-30T16:09:26.7139412-04:00 0HM8BVLMMUUIF:00000001 [INF] Request starting HTTP/1.1 GET http://localhost:5000/notificationhub?id=anyZmlUbbAmprcrbgxvSpw (ca22a1cb)
2021-04-30T16:09:26.7140773-04:00 0HM8BVLMMUUIF:00000001 [INF] CORS policy execution failed. (09b6f179)
2021-04-30T16:09:26.7140941-04:00 0HM8BVLMMUUIF:00000001 [INF] Request origin "http://localhost:5000" does not have permission to access the resource. (a03d560b)
2021-04-30T16:09:26.7150168-04:00 0HM8BVLMMUUIF:00000001 [INF] Executing endpoint '"/notificationhub"' (500cc934)
Thanks!
Product: PowerShell Universal
Version: 1.6