This repository was archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcallback.html
64 lines (50 loc) · 2.2 KB
/
callback.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<style>
body {
padding:50px;
margin:auto;
max-width:600px;
font-family: Arial, Helvetica, sans-serif;
}
p, li {
line-height: 160%;
}
hr {
border: none;
height: 1px;
background-color: #ccc;
}
</style>
<body>
<h1>OAuth callback page for "Obtain private app publishing rights"</h1>
<p>
This page is the callback URL for the OAuth process initiated by using the <a href="https://docs.fastlane.tools/actions/get_managed_play_store_publishing_rights"><code>get_managed_play_store_publishing_rights</code></a> fastlane action. The general process is described in <a href="https://developers.google.com/android/work/play/custom-app-api/get-started#obtain_private_app_publishing_rights">"Get started with custom app publishing > Obtain private app publishing rights"</a>
</p>
<h2>Result</h2>
<ul>
<li>Developer Account ID: <span id="id">(unknown)</span></li>
<li>Developer Account Link: <span id="link">(unknown)</span></li>
</ul>
<script>
// https://stackoverflow.com/a/12151322/252627
console.log(location.search);
let params = new URLSearchParams(location.search);
console.log(params);
if(params.get('developerAccount')) {
document.getElementById("id").innerHTML = params.get('developerAccount');
}
if(params.get('developerAccountLink')) {
document.getElementById("link").innerHTML = "<a href='" + params.get('developerAccountLink') + "'>" + params.get('developerAccountLink') + "</a>";
}
</script>
<p>
The Developer Account ID is required for further usage as a parameter <code>developer_account_id</code> of the <a href="https://docs.fastlane.tools/actions/create_app_on_managed_play_store"><code>create_app_on_managed_play_store</code> fastlane action</a>.
</p>
<hr />
<p>
Note that the "Developer Account ID" currently can simply be obtained from the URL you end up on when logging in to the Google Play Console as well - which is returned as "Developer Account Link" here. If you ever forget or loose it, just look there.
</p>
<hr />
<p>
Attention: The data is only output for you, not captured or logged in any way. The sourcecode for this plain HTML page is at <a href="https://github.com/fastlane/managed_google_play-callback">https://github.com/fastlane/managed_google_play-callback</a>.
</p>
</body>