@@ -524,6 +524,7 @@ <h2 class="title">Contents</h2>
524524<li><a href="#cupsOAuthGetJWKS">cupsOAuthGetJWKS</a></li>
525525<li><a href="#cupsOAuthGetMetadata">cupsOAuthGetMetadata</a></li>
526526<li><a href="#cupsOAuthGetTokens">cupsOAuthGetTokens</a></li>
527+ <li><a href="#cupsOAuthGetUserId">cupsOAuthGetUserId</a></li>
527528<li><a href="#cupsOAuthMakeAuthorizationURL">cupsOAuthMakeAuthorizationURL</a></li>
528529<li><a href="#cupsOAuthMakeBase64Random">cupsOAuthMakeBase64Random</a></li>
529530<li><a href="#cupsOAuthSaveClientData">cupsOAuthSaveClientData</a></li>
@@ -1982,7 +1983,7 @@ <h4 class="discussion">Discussion</h4>
19821983returned unchanged. Adding a new instance of a destination creates
19831984a copy of that destination's options.<br>
19841985<br>
1985- Use the <a href="#cupsSaveDests "><code>cupsSaveDests </code></a> function to save the updated list of
1986+ Use the <a href="#cupsSetDests "><code>cupsSetDests </code></a> function to save the updated list of
19861987destinations to the user's lpoptions file.</p>
19871988<h3 class="function"><a id="cupsAddDestMediaOptions">cupsAddDestMediaOptions</a></h3>
19881989<p class="description">Add the option corresponding to the specified media size.</p>
@@ -5559,11 +5560,13 @@ <h4 class="discussion">Discussion</h4>
55595560<h3 class="function"><a id="cupsJWTNew">cupsJWTNew</a></h3>
55605561<p class="description">Create a new, empty JSON Web Token.</p>
55615562<p class="code">
5562- <a href="#cups_jwt_t">cups_jwt_t</a> *cupsJWTNew(<span class="reserved">const</span> <span class="reserved">char</span> *type);</p>
5563+ <a href="#cups_jwt_t">cups_jwt_t</a> *cupsJWTNew(<span class="reserved">const</span> <span class="reserved">char</span> *type, <a href="#cups_json_t">cups_json_t</a> *claims );</p>
55635564<h4 class="parameters">Parameters</h4>
55645565<table class="list"><tbody>
55655566<tr><th>type</th>
55665567<td class="description">JWT type or <code>NULL</code> for default ("JWT")</td></tr>
5568+ <tr><th>claims</th>
5569+ <td class="description">JSON claims or <code>NULL</code> for empty</td></tr>
55675570</tbody></table>
55685571<h4 class="returnvalue">Return Value</h4>
55695572<p class="description">JWT object</p>
@@ -6213,6 +6216,27 @@ <h4 class="discussion">Discussion</h4>
62136216and any user ID information can be obtained using the
62146217<a href="#cupsOAuthCopyRefreshToken"><code>cupsOAuthCopyRefreshToken</code></a> and <a href="#cupsOAuthCopyUserId"><code>cupsOAuthCopyUserId</code></a> functions
62156218respectively.</p>
6219+ <h3 class="function"><span class="info"> CUPS 2.5 </span><a id="cupsOAuthGetUserId">cupsOAuthGetUserId</a></h3>
6220+ <p class="description">Get the user ID token associated with the given access token.</p>
6221+ <p class="code">
6222+ <a href="#cups_jwt_t">cups_jwt_t</a> *cupsOAuthGetUserId(<span class="reserved">const</span> <span class="reserved">char</span> *auth_uri, <a href="#cups_json_t">cups_json_t</a> *metadata, <span class="reserved">const</span> <span class="reserved">char</span> *access_token);</p>
6223+ <h4 class="parameters">Parameters</h4>
6224+ <table class="list"><tbody>
6225+ <tr><th>auth_uri</th>
6226+ <td class="description">Authorization Server URL</td></tr>
6227+ <tr><th>metadata</th>
6228+ <td class="description">Authorization Server metadata</td></tr>
6229+ <tr><th>access_token</th>
6230+ <td class="description">Access (Bearer) token</td></tr>
6231+ </tbody></table>
6232+ <h4 class="returnvalue">Return Value</h4>
6233+ <p class="description">Identification information or <code>NULL</code> if none</p>
6234+ <h4 class="discussion">Discussion</h4>
6235+ <p class="discussion">This function retrieves the user ID token associated with a given access
6236+ token. The user ID information is cached until the token expires to minimize
6237+ the overhead of communicating with the Authorization Server.
6238+
6239+ </p>
62166240<h3 class="function"><a id="cupsOAuthMakeAuthorizationURL">cupsOAuthMakeAuthorizationURL</a></h3>
62176241<p class="description">Make an authorization URL.</p>
62186242<p class="code">
0 commit comments