Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 04b8aa4

Browse files
committed
Add a dev oauth app config similar to how desktop does it
(https://github.com/desktop/desktop/blob/master/docs/technical/oauth.md)
1 parent bba14eb commit 04b8aa4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/GitHub.Api/Application/ApplicationInfo.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,24 @@ static partial class ApplicationInfo
1414
#endif
1515
public const string ApplicationDescription = "GitHub for Unity";
1616

17+
#if DEBUG
18+
/*
19+
For external contributors, we have bundled a developer OAuth application
20+
called `GitHub for Unity (dev)` so that you can complete the sign in flow
21+
locally without needing to configure your own application.
22+
This is for testing only and it is (obviously) public, proceed with caution.
23+
24+
For a release build, you should create a new oauth application on github.com,
25+
copy the `common/ApplicationInfo_Local.cs-example`
26+
template to `common/ApplicationInfo_Local.cs` and fill out the `myClientId` and
27+
`myClientSecret` fields for your oauth app.
28+
*/
29+
internal static string ClientId { get; private set; } = "924a97f36926f535e72c";
30+
internal static string ClientSecret { get; private set; } = "b4fa550b7f8e38034c6b1339084fa125eebb6155";
31+
#else
1732
internal static string ClientId { get; private set; } = "";
1833
internal static string ClientSecret { get; private set; } = "";
34+
#endif
1935

2036
public static string Version { get { return System.AssemblyVersionInformation.Version; } }
2137

0 commit comments

Comments
 (0)