xref: /aosp_15_r20/external/curl/docs/cmdline-opts/oauth2-bearer.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: oauth2-bearer
5*6236dae4SAndroid Build Coastguard WorkerHelp: OAuth 2 Bearer Token
6*6236dae4SAndroid Build Coastguard WorkerArg: <token>
7*6236dae4SAndroid Build Coastguard WorkerProtocols: IMAP LDAP POP3 SMTP HTTP
8*6236dae4SAndroid Build Coastguard WorkerCategory: auth imap pop3 smtp ldap
9*6236dae4SAndroid Build Coastguard WorkerAdded: 7.33.0
10*6236dae4SAndroid Build Coastguard WorkerMulti: single
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - basic
13*6236dae4SAndroid Build Coastguard Worker  - ntlm
14*6236dae4SAndroid Build Coastguard Worker  - digest
15*6236dae4SAndroid Build Coastguard WorkerExample:
16*6236dae4SAndroid Build Coastguard Worker  - --oauth2-bearer "mF_9.B5f-4.1JqM" $URL
17*6236dae4SAndroid Build Coastguard Worker---
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard Worker# `--oauth2-bearer`
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard WorkerSpecify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
22*6236dae4SAndroid Build Coastguard Workeris used in conjunction with the username which can be specified as part of the
23*6236dae4SAndroid Build Coastguard Worker--url or --user options.
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard WorkerThe Bearer Token and username are formatted according to RFC 6750.
26