You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation.html
+105Lines changed: 105 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,18 @@ <h3>API Usage and Terms</h3>
72
72
73
73
<p>Welcome to the BetaHub Unity Plugin! This guide will help you integrate our bug reporting tool into your Unity project, streamlining the process of collecting and managing bug reports from your game testers and players.</p>
74
74
75
+
<h2>Features</h2>
76
+
77
+
<ul>
78
+
<li><strong>In-game bug submission form:</strong> Streamlined form asking only for description and reproduction steps</li>
79
+
<li><strong>Device authentication:</strong> Optional OAuth-like sign-in flow via web browser for seamless user experience</li>
80
+
<li><strong>Video recording:</strong> Automatic capture of gameplay footage with bug reports</li>
81
+
<li><strong>Log collection:</strong> Automatic Unity log capture with support for custom logs</li>
82
+
<li><strong>Screenshot capture:</strong> Automatic screenshot attachment with bug submissions</li>
83
+
<li><strong>Working examples:</strong> Complete demo scenes and integration examples</li>
84
+
<li><strong>Highly customizable:</strong> Flexible configuration for different project needs</li>
85
+
</ul>
86
+
75
87
<h2>Prerequisites</h2>
76
88
77
89
<p>Before you begin, please ensure you have:</p>
@@ -158,6 +170,99 @@ <h3>Quick Start</h3>
158
170
159
171
<p>You're all set! Run your game and press <code>F12</code> to open the bug report form.</p>
160
172
173
+
<h2>Device Authentication (Optional)</h2>
174
+
175
+
<divclass="note">
176
+
<strong>Enhanced User Experience:</strong> Device authentication provides a seamless sign-in flow that eliminates the need for users to enter email addresses when submitting bug reports. Users authenticate once via web browser and stay signed in across game sessions.
177
+
</div>
178
+
179
+
<h3>How Device Authentication Works</h3>
180
+
181
+
<ol>
182
+
<li><strong>User Initiates Sign-In:</strong> User clicks the "Sign In" button in your game</li>
183
+
<li><strong>Browser Authentication:</strong> System opens the default web browser to BetaHub's secure authentication page</li>
184
+
<li><strong>User Authenticates:</strong> User signs in with their BetaHub account credentials in the browser</li>
185
+
<li><strong>Token Exchange:</strong> Plugin receives a secure JWT token and stores it locally</li>
186
+
<li><strong>Seamless Bug Reports:</strong> Authenticated users can submit bug reports without entering email addresses</li>
<p>When device authentication is properly set up:</p>
254
+
255
+
<ul>
256
+
<li>Authenticated users will see a "Thank you" message immediately after submitting bug reports</li>
257
+
<li>Non-authenticated users will see the traditional email entry form</li>
258
+
<li>Bug reports from authenticated users are automatically linked to their BetaHub accounts</li>
259
+
<li>The system automatically handles the authentication token in API requests</li>
260
+
</ul>
261
+
262
+
<divclass="note">
263
+
<strong>Example Scene:</strong> The plugin includes <code>DeviceAuthExample.cs</code> in the Samples folder, demonstrating complete integration between device authentication and bug reporting systems.
264
+
</div>
265
+
161
266
<h3>Configuration</h3>
162
267
163
268
<p>Adjust these settings in the BugReportingFormCanvas inspector:</p>
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ For continued use and more extensive testing, we strongly recommend creating you
25
25
## Features
26
26
27
27
-**In-game bug submission form**: Easily submit bugs with a form that only asks for a description and steps to reproduce. Titles, priority, and tags are handled by BetaHub's AI algorithms.
28
+
-**Device authentication**: Optional OAuth-like authentication flow that allows users to sign in via web browser. Authenticated users can submit bug reports without providing email addresses.
28
29
-**Video recording**: Record a video of the bug happening in-game. The video is automatically recorded and attached to the bug report.
29
30
-**Log collection**: Collect logs from the game and attach them to the bug report. By default, Unity logs are collected, but you can also add custom logs.
30
31
-**Screenshot of the game**: A screenshot of the game is automatically attached to the bug report when the user submits a bug.
@@ -45,6 +46,40 @@ For continued use and more extensive testing, we strongly recommend creating you
45
46
46
47
The installation and setup documentation is available [here](https://www.betahub.io/docs/integration-guides/).
47
48
49
+
## Device Authentication (Optional)
50
+
51
+
The plugin supports an optional device authentication flow that provides a seamless user experience for bug reporting.
52
+
53
+
### How It Works
54
+
55
+
1.**User Authentication**: Users click "Sign In" which opens a browser window for BetaHub authentication
56
+
2.**Secure Token Storage**: JWT authentication tokens are securely stored locally and persist across game sessions (24-hour expiry)
57
+
3.**Streamlined Bug Reports**: Authenticated users can submit bug reports without entering email addresses
58
+
4.**Automatic User Association**: Bug reports are automatically linked to the authenticated user's BetaHub account
59
+
60
+
### Setup
61
+
62
+
1. Add the `DeviceAuthCanvas` prefab to your scene alongside the existing `BugReportingFormCanvas`
63
+
2. Configure both prefabs with the same Project ID
64
+
3. Link the `DeviceAuthManager` component to your `BugReportUI` component
65
+
4. Optionally customize entity information (game name, type) in the `DeviceAuthManager`
0 commit comments