Skip to content

Commit 3ff6814

Browse files
committed
chore: remove sample game settings from prefabs
1 parent 47b427f commit 3ff6814

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

src/Packages/Passport/Prefabs/PassportLogin_Vuplex.prefab

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ MonoBehaviour:
197197
enableRemoteDebugging: 1
198198
remoteDebuggingPort: 9222
199199
clearCacheOnLogin: 1
200-
clientId: IllW5pJ54DShXtaSXzaAlghm40uQjptd
200+
clientId:
201201
environment: sandbox
202-
redirectUri: immutablerunner://callback
203-
logoutRedirectUri: immutablerunner://logout
202+
redirectUri:
203+
logoutRedirectUri:
204204
webViewBaseUrl: https://auth.immutable.com/im-embedded-login-prompt
205-
webViewWidth: 1920
206-
webViewHeight: 1080
205+
webViewWidth: 800
206+
webViewHeight: 600

src/Packages/Passport/Prefabs/PassportLogin_Windows.prefab

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ MonoBehaviour:
160160
enableRemoteDebugging: 0
161161
remoteDebuggingPort: 9222
162162
clearCacheOnLogin: 1
163-
clientId: IllW5pJ54DShXtaSXzaAlghm40uQjptd
163+
clientId:
164164
environment: sandbox
165-
redirectUri: mygame://callback
166-
logoutRedirectUri: mygame://logout
165+
redirectUri:
166+
logoutRedirectUri:
167167
webViewBaseUrl: https://auth.immutable.com/im-embedded-login-prompt
168-
webViewWidth: 1920
169-
webViewHeight: 1080
168+
webViewWidth: 800
169+
webViewHeight: 600

src/Packages/Passport/Runtime/Scripts/Public/PassportUI.cs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,21 @@ public class PassportUI : MonoBehaviour
9595
[Tooltip("Passport environment (sandbox or production)")]
9696
[SerializeField] private string environment = "sandbox";
9797

98-
[Tooltip("OAuth redirect URI for authentication callbacks")]
99-
[SerializeField] private string redirectUri = "immutablerunner://callback";
98+
[Tooltip("Redirect URI for authentication callbacks (configure in the Immutable Developer Hub)")]
99+
[SerializeField] private string redirectUri = "";
100100

101-
[Tooltip("OAuth logout redirect URI for logout callbacks")]
102-
[SerializeField] private string logoutRedirectUri = "immutablerunner://logout";
101+
[Tooltip("OAuth logout redirect URI for logout callbacks (configure in the Immutable Developer Hub)")]
102+
[SerializeField] private string logoutRedirectUri = "";
103103

104104
[Header("WebView Settings")]
105-
[Tooltip("Base URL for the WebView authentication page. The client_id parameter will be automatically appended from the Passport Configuration above.")]
106-
[SerializeField] private string webViewBaseUrl = "https://auth.immutable.com/im-embedded-login-prompt";
105+
// Internal base URL for Passport authentication - users don't need to modify this
106+
private const string webViewBaseUrl = "https://auth.immutable.com/im-embedded-login-prompt";
107107

108108
[Tooltip("Width of the WebView in pixels. Set to 0 to use the RawImage's current width.")]
109-
[SerializeField] private int webViewWidth = 1920;
109+
[SerializeField] private int webViewWidth = 800;
110110

111111
[Tooltip("Height of the WebView in pixels. Set to 0 to use the RawImage's current height.")]
112-
[SerializeField] private int webViewHeight = 1080;
112+
[SerializeField] private int webViewHeight = 600;
113113

114114
/// <summary>
115115
/// Gets the complete WebView URL with the client ID automatically appended
@@ -127,13 +127,9 @@ public string WebViewUrl
127127
}
128128

129129
/// <summary>
130-
/// Gets or sets the base WebView URL (without client_id parameter)
130+
/// Gets the base WebView URL (without client_id parameter) - read-only
131131
/// </summary>
132-
public string WebViewBaseUrl
133-
{
134-
get => webViewBaseUrl;
135-
set => webViewBaseUrl = value;
136-
}
132+
public string WebViewBaseUrl => webViewBaseUrl;
137133

138134
/// <summary>
139135
/// Gets or sets the WebView width in pixels

0 commit comments

Comments
 (0)