xref: /curl/docs/cmdline-opts/oauth2-bearer.md (revision 2abfc759)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: oauth2-bearer
5Help: OAuth 2 Bearer Token
6Arg: <token>
7Protocols: IMAP LDAP POP3 SMTP HTTP
8Category: auth imap pop3 smtp ldap
9Added: 7.33.0
10Multi: single
11See-also:
12  - basic
13  - ntlm
14  - digest
15Example:
16  - --oauth2-bearer "mF_9.B5f-4.1JqM" $URL
17---
18
19# `--oauth2-bearer`
20
21Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
22is used in conjunction with the username which can be specified as part of the
23--url or --user options.
24
25The Bearer Token and username are formatted according to RFC 6750.
26