2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
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
|
|
|
|
Added: 7.33.0
|
|
|
|
Multi: single
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- basic
|
|
|
|
- ntlm
|
|
|
|
- digest
|
|
|
|
Example:
|
|
|
|
- --oauth2-bearer "mF_9.B5f-4.1JqM" $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--oauth2-bearer`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
|
2024-05-15 15:20:32 -04:00
|
|
|
is used in conjunction with the username which can be specified as part of the
|
|
|
|
--url or --user options.
|
2023-12-11 20:30:44 -05:00
|
|
|
|
2024-05-15 15:20:32 -04:00
|
|
|
The Bearer Token and username are formatted according to RFC 6750.
|