Skip to content

doesn't seem to allow login (either local or via google) #6

@pracplayopen

Description

@pracplayopen

after cloning and running server and client as specified (dotnet run in server; npm install && npm run dev in client), receive a login screen as expected but it hangs (google) or errors (local bob/bob, alice/alice accounts) upon login:

here are errors in console from both attempts:

[OidcServiceWorker] service worker installed 1698479562
OidcServiceWorker.js:264 [OidcServiceWorker] service worker activated 1698479562
The FetchEvent for "https://localhost:5001/api/stuff" resulted in a network error response: the promise was rejected.
OidcServiceWorker.js:339     Uncaught (in promise) TypeError: Failed to fetch
    at handleFetch (OidcServiceWorker.js:339:23)
client.ts:18 [vite] connecting...
client.ts:150 [vite] connected.
index.js:438 state not found in service worker, using sessionStorage
getStateAsync @ index.js:438
index.js:833 Error: state not valid (expected: null, received: fY48JT7iDZJSLmz2)
    at index.js:804:13
    at async t (index.js:1045:17)
    at async Ye (index.js:908:48)
(anonymous) @ index.js:833
Show 1 more frame
Show less
index.js:804 Uncaught (in promise) Error: state not valid (expected: null, received: fY48JT7iDZJSLmz2)
    at index.js:804:13
    at async t (index.js:1045:17)
    at async Ye (index.js:908:48)

here's how it appears (google auth):
Screenshot from 2023-10-28 02-58-01

here's error when logging in via bob/bob or alice/alice locally:

Network Error
{
	"accessToken": "ACCESS_TOKEN_SECURED_BY_OIDC_SERVICE_WORKER_default",
	"expiresIn": 75,
	"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjlBNkIyOTEwRDYyQ0UwMzc5RjNCREI1MjBBNTc1RTIyIiwidHlwIjoiSldUIn0.eyJpc3MiOiJodHRwczovL2RlbW8uZHVlbmRlc29mdHdhcmUuY29tIiwibmJmIjoxNjk4NDc5OTQxLCJpYXQiOjE2OTg0Nzk5NDEsImV4cCI6MTY5ODQ4MDI0MSwiYXVkIjoiaW50ZXJhY3RpdmUucHVibGljLnNob3J0IiwiYW1yIjpbInB3ZCJdLCJhdF9oYXNoIjoiZW8yTnNkaDQ0b3BlTXpiak5lQ2lIdyIsInNpZCI6IjBGQzQ1MkNDRkQ1NUZCMENCMjc0MjI4MEM3RTM5OEYyIiwic3ViIjoiMiIsImF1dGhfdGltZSI6MTY5ODQ3OTU4MSwiaWRwIjoibG9jYWwifQ.jT8ncBb_NNXN39BBU5JJfr3LhzaL2LyeZRfm3xtHp3dBTOSL9zvmRZ086kkI3zIAxQevxtBae4i0ffJQkR1MAZlJtbnl9w6fp7tiTbNGB6jj0gyzr89ipjpSilHbzwjH1j2uo8J9lK-t6hNVGEG-eAJX42Xz1HoA35AYwuXDjPJhu9h40PMOVaLj8fA9CGz05mTDiM3Zs2XuSUbe0N1sG81zq_X4YJQMs2rx3qZaxrWcsJPw9AWVvHvRqhq7D_39wuPbaPYEmma__H77rUSwxSv64eCm4NbhgW6lmFhTEGPT4aNE7xjWfg0PiT_-FYqFaMSWrBYm3WrCZ9HIo_uEJw",
	"scope": "openid profile email api offline_access",
	"tokenType": "Bearer",
	"issuedAt": 1698479941.461,
	"refreshToken": "REFRESH_TOKEN_SECURED_BY_OIDC_SERVICE_WORKER_default",
	"accessTokenPayload": {
		"iss": "https://demo.duendesoftware.com",
		"nbf": 1698479941,
		"iat": 1698479941,
		"exp": 1698480016,
		"aud": "api",
		"scope": [
			"openid",
			"profile",
			"email",
			"api",
			"offline_access"
		],
		"amr": [
			"pwd"
		],
		"client_id": "interactive.public.short",
		"sub": "2",
		"auth_time": 1698479581,
		"idp": "local",
		"name": "Bob Smith",
		"email": "BobSmith@email.com",
		"sid": "0FC452CCFD55FB0CB2742280C7E398F2",
		"jti": "C978DDD35C819026406C608A26941117"
	},
	"idTokenPayload": {
		"iss": "https://demo.duendesoftware.com",
		"nbf": 1698479941,
		"iat": 1698479941,
		"exp": 1698480241,
		"aud": "interactive.public.short",
		"amr": [
			"pwd"
		],
		"at_hash": "eo2Nsdh44opeMzbjNeCiHw",
		"sid": "0FC452CCFD55FB0CB2742280C7E398F2",
		"sub": "2",
		"auth_time": 1698479581,
		"idp": "local"
	},
	"expiresAt": 1698480016
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions