byo-software / steam-openid-connect-provider

Steam OpenID Connect Identity Provider (IdP)
MIT License
67 stars 24 forks source link

Issue with Azure B2C AD #10

Closed TauTauBenn closed 3 years ago

TauTauBenn commented 3 years ago

Getting the following error when configuring the openid-connect-provider in Azure AD: "A claim with id \'UserId\' was not found, which is required by ClaimsTransformation \'CreateAlternativeSecurityId\' with id \'CreateAlternativeSecurityId\'"

Azure AD Settings: image

I'm using the docker container and there i get the message: 2021-05-30T00:23:33.071140683Z: [INFO] [00:23:33 Debug] IdentityServer4.Services.DefaultClaimsService 2021-05-30T00:23:33.071176985Z: [INFO] In addition to an id_token, an access_token was requested. No claims other than sub are included in the id_token. To obtain more user claims, either use the user info endpoint or set AlwaysIncludeUserClaimsInIdToken on the client configuration.

Maybe this is why Azure AD has no access to the required claims?

saskenuba commented 3 years ago

Not sure if you have this issue anymore, but I've solved mine with this diff on my fork

https://github.com/saskenuba/steam-openid-connect-provider/commit/c6136cedbc52a7fd4b6417a8e4f73f11392e489d?w=1&diff=split

Trojaner commented 3 years ago

@saskenuba can you do a PR?

saskenuba commented 3 years ago

@saskenuba can you do a PR?

hey, I've rebased my branch and opened the pr #13

TauTauBenn commented 3 years ago

Thanks for the fix, could you possibly update the docker container? :)

Trojaner commented 3 years ago

Sadly DockerHub shut down autobuilds for the free tier, so we need to switch to GitHub actions instead. However at the moment I don't have time to work on that