You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>CUPS uses a redirect URI of "<ahref="http://127.0.0.1/"">http://127.0.0.1/"</a> for all authorization on the local system.
241
271
</p>
242
272
<h2id="cups-oauth-1.examples">Examples</h2>
243
-
<p>TBD
273
+
<p>Register a client ID and secret for the OAuth server at "<ahref="https://oauth.example.com/":">https://oauth.example.com/":</a>
274
+
</p>
275
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> set-client-data CLIENT-ID CLIENT-SECRET
276
+
</pre>
277
+
<p>Save an access token (sometimes called an application or API key) for the OAuth server at "<ahref="https://oauth.example.com/":">https://oauth.example.com/":</a>
278
+
</p>
279
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> set-access-token TOKEN
280
+
</pre>
281
+
<p>Authorize against the OAuth server at "<ahref="https://oauth.example.com/"">https://oauth.example.com/"</a> using your web browser:
244
282
</p>
283
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> authorize
The supported uses are "digitalSignature", "nonRepudiation", "keyEncipherment", "dataEncipherment", "keyAgreement", "keyCertSign", "cRLSign", "encipherOnly", and "decipherOnly".
215
215
The preset "default-ca" specifies those uses required for a Certificate Authority, and the preset "default-tls" specifies those uses required for TLS.
The URI can be a filename, directory, or a network socket URI of the form "socket://ADDRESS[:PORT]" (where the default port number is 9100).
227
+
The URI can be a filename, directory, or a network socket URI of the form <em>socket://ADDRESS</em>[:<em>PORT</em>] where the default port number is 9100.
223
228
When specifying a directory,
224
229
<strong>ippeveprinter</strong>
225
230
will create an output file using the job ID and name.
adds environment variables starting with "IPP_" for all IPP Job attributes in the print request.
307
333
For example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute.
308
334
</p>
309
-
<p>In addition, all IPP "xxx-default"and "pwg-xxx" Printer Description attributes are added to the environment.
335
+
<p>In addition, all IPP "xxx-default", "xxx-ready", and "xxx-supported" Printer Description attributes are added to the environment.
310
336
For example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute.
311
337
</p>
312
338
<p>Enumerated values are converted to their keyword equivalents.
0 commit comments