This file is indexed.

/usr/share/doc/python-social-auth-doc/html/_sources/backends/stripe.txt is in python-social-auth-doc 1:0.2.21+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Stripe
======

Stripe uses OAuth2 for its authorization service. To setup Stripe backend:

- Register a new application at `Stripe App Creation`_, and

- Grab the ``client_id`` value in ``Applications`` tab and fill the ``App Id``
  setting::

    SOCIAL_AUTH_STRIPE_KEY = 'ca_...'

- Grab the ``Test Secret Key`` in the ``API Keys`` tab and fille the ``App
  Secret`` setting::

    SOCIAL_AUTH_STRIPE_SECRET = '...'

- Define ``SOCIAL_AUTH_STRIPE_SCOPE`` with the desired scope (options are
  ``read_only`` and ``read_write``)::

    SOCIAL_AUTH_STRIPE_SCOPE = ['read_only']

- Add the needed backend to ``SOCIAL_AUTH_AUTHENTICATION_BACKENDS``::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.stripe.StripeOAuth2',
        ...
    )

More info on Stripe OAuth2 at `Integrating OAuth`_.

.. _Stripe App Creation: https://manage.stripe.com/#account/applications/settings
.. _Integrating OAuth: https://stripe.com/docs/connect/oauth