Update scopes

This commit is contained in:
konarfil
2023-10-10 14:29:20 +02:00
parent eabb7dbf6b
commit ceaae667b0
5 changed files with 20 additions and 10 deletions

View File

@@ -98,7 +98,8 @@
<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 the <b>offline_access</b> scope,
which allows the client to obtain a refresh token. 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">
@@ -173,7 +174,7 @@
const responseType = "code"; const responseType = "code";
const redirectUri = getRedirectUri(); const redirectUri = getRedirectUri();
const scope = "offline_access"; const scope = "offline_access%20photos%20files";
const state = generateSessionState(); const state = generateSessionState();
setCookie("state", state, 5); setCookie("state", state, 5);

View File

@@ -91,7 +91,8 @@
<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 the <b>offline_access</b> scope,
which allows the client to obtain a refresh token. 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">
@@ -166,7 +167,7 @@
const responseType = "token"; const responseType = "token";
const redirectUri = getRedirectUri(); const redirectUri = getRedirectUri();
const scope = "offline_access"; const scope = "offline_access%20photos%20files";
const state = generateSessionState(); const state = generateSessionState();
setCookie("state", state, 5); setCookie("state", state, 5);

View File

@@ -101,7 +101,8 @@
<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 the <b>offline_access</b> scope,
which allows the client to obtain a refresh token. 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">
@@ -192,7 +193,7 @@
const responseType = "code"; const responseType = "code";
const redirectUri = getRedirectUri(); const redirectUri = getRedirectUri();
const scope = "offline_access"; const scope = "offline_access%20photos%20files";
const state = generateSessionState(); const state = generateSessionState();
const codeChallenge = getCookie("code_challenge"); const codeChallenge = getCookie("code_challenge");

View File

@@ -97,9 +97,10 @@
<li class="collection-item"> <li class="collection-item">
<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 Scopes requested by the client. Scopes are used to limit the access of the access
access token. In this case, we are requesting the <b>offline_access</b> scope, token. In this case, we are requesting the <b>offline_access</b> scope,
which allows the client to obtain a refresh token. 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">
@@ -173,7 +174,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"; const scope = "offline_access%20photos%20files";
const state = generateSessionState(); const state = generateSessionState();
setCookie("webauth-state", state, 5); setCookie("webauth-state", state, 5);

View File

@@ -24,4 +24,10 @@
<changefreq>weekly</changefreq> <changefreq>weekly</changefreq>
<priority>0.8</priority> <priority>0.8</priority>
</url> </url>
<url>
<loc>https://oauth-playground.online/flow/implicit</loc>
<lastmod>2023-10-10</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset> </urlset>