Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

adimian/sigil

Repository files navigation

/<context>/login --> {'token': "slfjslfjsdlfk"}
----

<context>/need {'app key'}-> add/delete "(zone,read) OR (zone, read, pyrene_prod)"

----

<within context>
(application.permissions, read)
(application.permissions, write)

# FOLLOWING REQUIRES Authentication-Token #

/teams

/app/register --> {'app-key': "sldfkjslfkjdf"}

/user/key -> {'key': "slfkjsdlfkjslf"}

GET /user/details?name=maarten -> {'name': 'maarten',
                                   'given_name': 'de paepe',
                                   'display_name': 'Maarten De Paepe'}
                  
GET /<context>/permissions?name=maarten -> {'provides': [
                                                ['zone', 'read', 'pyrene_prod'],
                                                ['zone', 'write', 'pyrene_prod'],
                                            ]}

PUT/DELETE /haruba/permissions {'name': 'maarten',
                                'provides': [
                                    ['zone', 'read', 'pyrene_prod'],
                                    ['zone', 'write', 'pyrene_prod'],
                                    ['application.permissions', 'write'],
                                    ['application.permissions', 'read'],
                                ]}

Overwriting the registration and recovery templates
===================================================

define the folder the templates are located in:
MAIL_TEMPLATE_FOLDER=/path/to/templates

define your template names
MAIL_TEMPLATES={'REGISTER': 'email_register.html',
                'RECOVER': 'email_recover.html'}