Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebAssembly Support for Blazor and Uno #265

Closed
JohnGalt1717 opened this issue Nov 30, 2020 · 9 comments
Closed

Add WebAssembly Support for Blazor and Uno #265

JohnGalt1717 opened this issue Nov 30, 2020 · 9 comments
Labels

Comments

@JohnGalt1717
Copy link

It would be really great to have OidcClient also support webassembly with browser redirects. The reason why is that this would then create a transparent authentication layer that would work cross platform with Uno and would also be able to be used in blazor with code sharing and logic etc. too.

@leastprivilege
Copy link
Contributor

support webassembly

What would I need to do to support WASM? My understanding was that netstandard is compatible?

with browser redirects

Does IBrowser not work for you?

@JohnGalt1717
Copy link
Author

The issue is that unlike every other client you would use, web works differently in that it has to pre-parse using javascript, the return URL and then kick off the application again. Hence I don't see how this could work without it explicitly being handled.

Web: Redirect current browser away from app to idp => login => redirect back to app domain with response => parse response => load app again with values.

Everything else: Pop a browser window of some sort to idp => login => redirect to app url that does processing.

So since the web detaches from the process ibrowser expects, it can't work without accommodating it properly.

@leastprivilege
Copy link
Contributor

Have you tried the PrepareLogin & ProcessResponse approach?

@JohnGalt1717
Copy link
Author

I have not. Honestly this was a SPIKE to evaluate the viability of Uno to get full cross platform that Xamarin Forms just isn't capable of doing. It would be nice if there was a sample with WebAuthenticationBroker and Uno (or something similar) to make it just work across the board since this library works so well for basically all of the other platforms.

unoplatform/uno#3433

@leastprivilege
Copy link
Contributor

@JohnGalt1717
Copy link
Author

@leastprivilege It would be really nice to just get this so that it would automatically work and cover the entire .NET supported space as a result...

@leastprivilege
Copy link
Contributor

I don't have the time right now to look into that. Feel free to research yourself and let us know what you found out.

@leastprivilege
Copy link
Contributor

Closing due to inactivity.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants