-
Notifications
You must be signed in to change notification settings - Fork 50
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
Change Windows implementation with our own solution #287
Conversation
07efe9e
to
9301a98
Compare
7ddec43
to
6f15b4c
Compare
@@ -52,6 +52,7 @@ jobs: | |||
nuget pack nuget/Auth0.OidcClient.AndroidX.nuspec | |||
nuget pack nuget/Auth0.OidcClient.Core.nuspec | |||
nuget pack nuget/Auth0.OidcClient.iOS.nuspec | |||
nuget pack nuget/Auth0.OidcClient.MAUI.nuspec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are moving MAUI packaging to follow the same pattern as we do with other SDKs throuhg a nuspec file to better control platform specific dependencies.
5252733
to
d819e8c
Compare
4008bd7
to
3a4b412
Compare
public void OpenBrowser(Uri uri) | ||
{ | ||
var process = new System.Diagnostics.Process(); | ||
process.StartInfo.FileName = "rundll32.exe"; | ||
process.StartInfo.Arguments = $"url.dll,FileProtocolHandler \"{uri.ToString().Replace("\"", "%22")}\""; | ||
process.StartInfo.UseShellExecute = true; | ||
process.Start(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before going to GA, we will want to have a decent security review on this. It works as expected, and is also used in other packages, but does look a bit funky.
If this turns out to be an issue before we go GA, we can swap for an embedded webview implementation.
cancellationToken.ThrowIfCancellationRequested(); | ||
} | ||
|
||
var newUri = authorizeUri.ToString().IndexOf("logout", StringComparison.CurrentCultureIgnoreCase) > -1 ? StateModifier.MoveStateToReturnTo(authorizeUri) : authorizeUri; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make this check more resilient by ensuring we do not just check for the logout string, but actualy check if the full path is v2/logout
.
Changes
This PR replaces WinUIEx with our own implementation, heavily inspired on WinUIEx.
The reason this is being swapped is because of behavior in WinUIEx that does not allow us to use the package in its current state.
Additionally, we stripped things that we do not need, and added things we believe make sense in our case.
Checklist