C#C
C#2y ago
Rese

Blazor WSAM with Cognito Hosted UI issues

Hey there, I'm slightly struggling with getting Blazor WebAssembly to work with Cognito. I created a user pool, but I'm not exactly sure how it's supposed to work with Blazor. I was following this sample repo:
https://github.com/sravimohan/blazor-webassembly-cognito-hosted-ui-sample/tree/main

But it seems to not work, first and foremost the RemoteAuthenticatorView gives:
Refused to display 'https://***.auth.eu-central-1.amazoncognito.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

but then it redirects me to their actual UI, where if I try to log in, I come back with login failed to my website. I'd love to not bother you guys with this, but I'm not even sure how this thing is supposed to work (I come from Blazor Server).
GitHub
Sample Blazor Web assembly project Using Cognito Hosted UI Authentication - sravimohan/blazor-webassembly-cognito-hosted-ui-sample
Was this page helpful?