curl/docs/cmdline-opts/oauth2-bearer.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
601 B
Markdown
Raw Normal View History

---
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
2016-11-16 21:20:36 +08:00
Long: oauth2-bearer
Help: OAuth 2 Bearer Token
Arg: <token>
Protocols: IMAP LDAP POP3 SMTP HTTP
Category: auth
Added: 7.33.0
Multi: single
See-also:
- basic
- ntlm
- digest
Example:
- --oauth2-bearer "mF_9.B5f-4.1JqM" $URL
2016-11-16 21:20:36 +08:00
---
# `--oauth2-bearer`
2016-11-16 21:20:36 +08:00
Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
is used in conjunction with the username which can be specified as part of the
--url or --user options.
2016-11-16 21:20:36 +08:00
The Bearer Token and username are formatted according to RFC 6750.