This file is indexed.

/usr/lib/python3/dist-packages/social/apps/flask_app/peewee/models.py is in python3-social-auth 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""Flask Peewee ORM models for Social Auth"""
from peewee import Model, ForeignKeyField, Proxy

from social.utils import setting_name, module_member
from social.storage.peewee_orm import PeeweeUserMixin, \
                                      PeeweeAssociationMixin, \
                                      PeeweeNonceMixin, \
                                      PeeweeCodeMixin, \
                                      BasePeeweeStorage, \
                                      database_proxy


class FlaskStorage(BasePeeweeStorage):
    user = None
    nonce = None
    association = None
    code = None


def init_social(app, db):
    User = module_member(app.config[setting_name('USER_MODEL')])

    database_proxy.initialize(db)

    class UserSocialAuth(PeeweeUserMixin):
        """Social Auth association model"""
        user = ForeignKeyField(User, related_name='social_auth')

        @classmethod
        def user_model(cls):
            return User

    class Nonce(PeeweeNonceMixin):
        """One use numbers"""
        pass

    class Association(PeeweeAssociationMixin):
        """OpenId account association"""
        pass

    class Code(PeeweeCodeMixin):
        pass

    # Set the references in the storage class
    FlaskStorage.user = UserSocialAuth
    FlaskStorage.nonce = Nonce
    FlaskStorage.association = Association
    FlaskStorage.code = Code