aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/oauth2-bearer.d
blob: 6f351478406449c3bf09022f38bb3114677da341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: oauth2-bearer
Help: OAuth 2 Bearer Token
Arg: <token>
Protocols: IMAP LDAP POP3 SMTP HTTP
Category: auth
Example: --oauth2-bearer "mF_9.B5f-4.1JqM" $URL
Added: 7.33.0
See-also: basic ntlm digest
Multi: single
---
Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
is used in conjunction with the user name which can be specified as part of
the --url or --user options.

The Bearer Token and user name are formatted according to RFC 6750.