Skip to content

Commit

Permalink
Use subsections
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Nov 27, 2019
1 parent 4ba6650 commit 1ce9a9a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/commercial/sharing.rst
@@ -1,5 +1,5 @@
Sharing
-------
=======

.. note::

Expand All @@ -16,7 +16,7 @@ Additionally, you can use a HTTP Authorization Header.
This is useful to have access from a script.

Enabling
~~~~~~~~
--------

* Go into your *Project Admin* page and to the *Sharing* menu.
* Under the *Share with someone new* heading, select the way you prefer (secret link, password, or HTTP header token),
Expand All @@ -40,7 +40,7 @@ Enabling
If you want access to these features, email us to support@readthedocs.com.

Effects
~~~~~~~
-------

Secret Link
***********
Expand All @@ -59,6 +59,9 @@ view your project.
HTTP Authorization Header
*************************

Token Authorization
~~~~~~~~~~~~~~~~~~~

You need to send the ``Authorization`` header with the token on each HTTP request.
The header has the form ``Authorization: Token <ACCESS_TOKEN>``.
For example:
Expand All @@ -67,6 +70,8 @@ For example:

curl -H "Authorization: Token 19okmz5k0i6yk17jp70jlnv91v" https://docs.example.com/en/latest/example.html

Basic Authorization
~~~~~~~~~~~~~~~~~~~

You can also use basic authorization, with the token as user and an empty password.
For example:
Expand Down

0 comments on commit 1ce9a9a

Please sign in to comment.