mirror of
https://github.com/ysoftdevs/oauth-playground-client.git
synced 2026-04-21 08:01:33 +02:00
Remove offline_access scope
This commit is contained in:
@@ -97,9 +97,7 @@
|
|||||||
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
||||||
<p>
|
<p>
|
||||||
Scopes requested by the client. Scopes are used to limit the access of the access
|
Scopes requested by the client. Scopes are used to limit the access of the access
|
||||||
token. In this case, we are requesting the <b>offline_access</b> scope,
|
token. In this case, we are requesting access to <b>photos</b> and <b>files</b>.
|
||||||
which allows the client to obtain a refresh token, <b>photos</b> to access photos
|
|
||||||
and <b>files</b> to have access to user files.
|
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="collection-item">
|
<li class="collection-item">
|
||||||
@@ -174,7 +172,7 @@
|
|||||||
|
|
||||||
const responseType = "code";
|
const responseType = "code";
|
||||||
const redirectUri = getRedirectUri();
|
const redirectUri = getRedirectUri();
|
||||||
const scope = "offline_access%20photos%20files";
|
const scope = "photos%20files";
|
||||||
const state = generateSessionState();
|
const state = generateSessionState();
|
||||||
setCookie("state", state, 5);
|
setCookie("state", state, 5);
|
||||||
|
|
||||||
|
|||||||
@@ -90,9 +90,7 @@
|
|||||||
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
||||||
<p>
|
<p>
|
||||||
Scopes requested by the client. Scopes are used to limit the access of the access
|
Scopes requested by the client. Scopes are used to limit the access of the access
|
||||||
token. In this case, we are requesting the <b>offline_access</b> scope,
|
token. In this case, we are requesting access to <b>photos</b> and <b>files</b>.
|
||||||
which allows the client to obtain a refresh token, <b>photos</b> to access photos
|
|
||||||
and <b>files</b> to have access to user files.
|
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="collection-item">
|
<li class="collection-item">
|
||||||
@@ -167,7 +165,7 @@
|
|||||||
|
|
||||||
const responseType = "token";
|
const responseType = "token";
|
||||||
const redirectUri = getRedirectUri();
|
const redirectUri = getRedirectUri();
|
||||||
const scope = "offline_access%20photos%20files";
|
const scope = "photos%20files";
|
||||||
const state = generateSessionState();
|
const state = generateSessionState();
|
||||||
setCookie("state", state, 5);
|
setCookie("state", state, 5);
|
||||||
|
|
||||||
|
|||||||
@@ -100,9 +100,7 @@
|
|||||||
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
||||||
<p>
|
<p>
|
||||||
Scopes requested by the client. Scopes are used to limit the access of the access
|
Scopes requested by the client. Scopes are used to limit the access of the access
|
||||||
token. In this case, we are requesting the <b>offline_access</b> scope,
|
token. In this case, we are requesting access to <b>photos</b> and <b>files</b>.
|
||||||
which allows the client to obtain a refresh token, <b>photos</b> to access photos
|
|
||||||
and <b>files</b> to have access to user files.
|
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="collection-item">
|
<li class="collection-item">
|
||||||
@@ -193,7 +191,7 @@
|
|||||||
|
|
||||||
const responseType = "code";
|
const responseType = "code";
|
||||||
const redirectUri = getRedirectUri();
|
const redirectUri = getRedirectUri();
|
||||||
const scope = "offline_access%20photos%20files";
|
const scope = "photos%20files";
|
||||||
const state = generateSessionState();
|
const state = generateSessionState();
|
||||||
const codeChallenge = getCookie("code_challenge");
|
const codeChallenge = getCookie("code_challenge");
|
||||||
|
|
||||||
|
|||||||
@@ -98,9 +98,7 @@
|
|||||||
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
<p><b><span class="emphasis">scope</span>=<span id="scope"></span></b></p>
|
||||||
<p>
|
<p>
|
||||||
Scopes requested by the client. Scopes are used to limit the access of the access
|
Scopes requested by the client. Scopes are used to limit the access of the access
|
||||||
token. In this case, we are requesting the <b>offline_access</b> scope,
|
token. In this case, we are requesting access to <b>photos</b> and <b>files</b>.
|
||||||
which allows the client to obtain a refresh token, <b>photos</b> to access photos
|
|
||||||
and <b>files</b> to have access to user files.
|
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="collection-item">
|
<li class="collection-item">
|
||||||
@@ -174,7 +172,7 @@
|
|||||||
const authUrl = baseUrl + "/passwordless"
|
const authUrl = baseUrl + "/passwordless"
|
||||||
const responseType = "code";
|
const responseType = "code";
|
||||||
const redirectUri = getRedirectUri();
|
const redirectUri = getRedirectUri();
|
||||||
const scope = "offline_access%20photos%20files";
|
const scope = "photos%20files";
|
||||||
const state = generateSessionState();
|
const state = generateSessionState();
|
||||||
setCookie("webauth-state", state, 5);
|
setCookie("webauth-state", state, 5);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user