Open
Conversation
Windows native WebView plugin Message passing between web view and Unity
Added build/support doc for windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces Windows-specific support for OAuth authentication using an embedded WebView, along with CMake build configuration for plugin management. The main changes include a new Windows WebView OAuth flow, updates to session restoration logic, and the addition of CMake files to build platform-specific plugins. Several Unity meta files are also added for asset management.
Windows OAuth WebView Support:
OAuthWindowsWebViewFlowclass to enable OAuth authentication using an embedded WebView on Windows platforms. This class leverages aWindowsWebViewHandlerto handle the OAuth flow and callback interception. (SDK/Runtime/Auth/OAuth/OAuthFlows/OAuthWindowsWebViewFlow.cs, [1] [2]OAuthWindowsWebViewFlowfor Windows Editor and Player, ensuring the correct OAuth flow is selected on Windows. (SDK/Runtime/Auth/OAuth/OAuthFlows/IOAuthFlow.cs, SDK/Runtime/Auth/OAuth/OAuthFlows/IOAuthFlow.csR21-R27)WindowsWebViewHandlerfor Windows standalone and editor builds. (SDK/Runtime/EmbeddedWallet/IWebviewHandler.cs, SDK/Runtime/EmbeddedWallet/IWebviewHandler.csR26-R27)OAuth Flow and Session Improvements:
SDK/Runtime/Auth/OAuth/LoginWithOAuth.cs, SDK/Runtime/Auth/OAuth/LoginWithOAuth.csL44-R45)SDK/Runtime/Auth/AuthDelegator.cs, SDK/Runtime/Auth/AuthDelegator.csR274-R303)CMake Build System for Plugins:
SDK/Plugins/CMakeLists.txt, [1];SDK/Plugins/Windows/CMakeLists.txt, [2];SDK/Plugins/CMakeLists.txt.meta, [3];SDK/Plugins/Windows/CMakeLists.txt.meta, [4]Unity Asset Management:
.metafiles for new or updated plugin directories and files to ensure proper asset tracking in the Unity editor. (SDK/Plugins/Windows.meta, [1];SDK/Plugins/Windows/PrivyWebView.cpp.meta, [2];SDK/Plugins/Windows/x86_64.meta, [3];SDK/Plugins/Windows/x86_64/Release.meta, [4];SDK/Plugins/Windows/x86_64/Release/PrivyWebView.dll.meta, [5]