Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
494 views
in Technique[技术] by (71.8m points)

openid connect - The ITfoxtec.Identity.BlazorWebAssembly.OpenidConnect blazor sample fails to retrieve metadata

I was trying to get the ITfoxtec.Identity.BlazorWebAssembly.OpenidConnect module to work. The sample compiles but does not work because the metadata request is resected due to a CORS violation. I was using the samples provided. the server metadata seems good but the client gets rejected.

question from:https://stackoverflow.com/questions/66051378/the-itfoxtec-identity-blazorwebassembly-openidconnect-blazor-sample-fails-to-ret

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The OIDC/Identity Server you are using need to accept calls from the domain on which the Blazor client application is hosted. The OIDC code insight the Blazor client calls both the OIDC Discovery endpoint and Token endpoint on the OIDC/Identity Server. These calls need to be enabled by the CORS configuration.

You should be able to run the sample locally and login using a FoxIDs test user. Thereby, you should be able to see the authentication flow.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...