| Branch: | Tag: | Revision:

root / snf-astakos-app / README @ f7400729

History | View | Annotate | Download (14.7 kB)

1 e0bfcf77 Antony Chazapis
2 e0bfcf77 Antony Chazapis
3 e0bfcf77 Antony Chazapis
4 e0bfcf77 Antony Chazapis
Astakos is an identity management service, built by GRNET using Django (
5 e0bfcf77 Antony Chazapis
Learn more about Astakos at:
6 e0bfcf77 Antony Chazapis
7 e0bfcf77 Antony Chazapis
Consult COPYRIGHT for licensing information.
8 e0bfcf77 Antony Chazapis
9 e0bfcf77 Antony Chazapis
About Astakos application
10 e0bfcf77 Antony Chazapis
11 e0bfcf77 Antony Chazapis
12 e0bfcf77 Antony Chazapis
This package contains the Django application that implements all identity management functions.
13 e0bfcf77 Antony Chazapis
14 e0bfcf77 Antony Chazapis
How to run
15 e0bfcf77 Antony Chazapis
16 e0bfcf77 Antony Chazapis
17 e0bfcf77 Antony Chazapis
Use snf-webproject to run Astakos automatically.
18 e0bfcf77 Antony Chazapis
19 e0bfcf77 Antony Chazapis
To use Astakos in a custom Django project, add ```` to ``INSTALLED_APPS``. Astakos requires South (
20 e0bfcf77 Antony Chazapis
21 e0bfcf77 Antony Chazapis
Also, add the following to your ````::
22 e0bfcf77 Antony Chazapis
23 e0bfcf77 Antony Chazapis
24 e0bfcf77 Antony Chazapis
25 e0bfcf77 Antony Chazapis
26 e0bfcf77 Antony Chazapis
27 e0bfcf77 Antony Chazapis
28 e0bfcf77 Antony Chazapis
29 e0bfcf77 Antony Chazapis
30 e0bfcf77 Antony Chazapis
31 e0bfcf77 Antony Chazapis
32 e0bfcf77 Antony Chazapis
33 e0bfcf77 Antony Chazapis
34 e0bfcf77 Antony Chazapis
35 e0bfcf77 Antony Chazapis
36 e0bfcf77 Antony Chazapis
    LOGIN_URL = '/im'
37 e0bfcf77 Antony Chazapis
38 e0bfcf77 Antony Chazapis
39 e0bfcf77 Antony Chazapis
40 e0bfcf77 Antony Chazapis
41 e0bfcf77 Antony Chazapis
Configure in ```` or a ``.conf`` file in ``/etc/synnefo`` if using snf-webproject.
42 e0bfcf77 Antony Chazapis
43 b03877be Sofia Papagiannaki
=========================================== =============================================================================   ===========================================================================================
44 b03877be Sofia Papagiannaki
Name                                        Default value                                                                   Description
45 b03877be Sofia Papagiannaki
=========================================== =============================================================================   ===========================================================================================
46 b03877be Sofia Papagiannaki
ASTAKOS_AUTH_TOKEN_DURATION                 one month                                                                       Expiration time of newly created auth tokens
47 b03877be Sofia Papagiannaki
ASTAKOS_DEFAULT_USER_LEVEL                  4                                                                               Default (not-invited) user level
48 b03877be Sofia Papagiannaki
ASTAKOS_INVITATIONS_PER_LEVEL               {0:100, 1:2, 2:0, 3:0, 4:0}                                                     Number of user invitations per user level
49 b03877be Sofia Papagiannaki
ASTAKOS_DEFAULT_FROM_EMAIL                  GRNET Cloud <no-reply\>                                                ``from`` parameter passed in ``django.core.mail.send_mail``
50 b03877be Sofia Papagiannaki
ASTAKOS_DEFAULT_CONTACT_EMAIL               support\                                                         Contact email
51 b03877be Sofia Papagiannaki
ASTAKOS_DEFAULT_ADMIN_EMAIL                 support\                                                         Administrator email to receive user creation notifications (if None disables notifications)
52 b03877be Sofia Papagiannaki
ASTAKOS_IM_MODULES                          ['local', 'shibboleth']                                                         Signup modules
53 b03877be Sofia Papagiannaki
ASTAKOS_FORCE_PROFILE_UPDATE                True                                                                            Force user profile verification
54 b03877be Sofia Papagiannaki
ASTAKOS_INVITATIONS_ENABLED                 True                                                                            Enable invitations
55 b03877be Sofia Papagiannaki
ASTAKOS_COOKIE_NAME                         _pithos2_a                                                                      ``Key`` parameter passed in ``django.http.HttpResponse.set_cookie``
56 b03877be Sofia Papagiannaki
ASTAKOS_COOKIE_DOMAIN                       None                                                                            ``Domain`` parameter passed in ``django.http.HttpResponse.set_cookie``
57 b03877be Sofia Papagiannaki
ASTAKOS_COOKIE_SECURE                       True                                                                            ``Secure`` parameter passed in ``django.http.HttpResponse.set_cookie``
58 b03877be Sofia Papagiannaki
ASTAKOS_IM_STATIC_URL                       /static/im/                                                                     URL to use when referring to static files
59 b03877be Sofia Papagiannaki
ASTAKOS_MODERATION_ENABLED                  True                                                                            If False and invitations are not enabled newly created user will be automatically accepted
60 b03877be Sofia Papagiannaki
ASTAKOS_BASEURL                             \                                                     Astakos baseurl
61 b03877be Sofia Papagiannaki
ASTAKOS_SITENAME                            GRNET Cloud                                                                     Service name that appears in emails
62 b03877be Sofia Papagiannaki
ASTAKOS_RECAPTCHA_ENABLED                   True                                                                            Enable recaptcha
63 b03877be Sofia Papagiannaki
ASTAKOS_RECAPTCHA_PUBLIC_KEY                                                                                                Recaptcha public key obtained after registration here:
64 b03877be Sofia Papagiannaki
ASTAKOS_RECAPTCHA_PRIVATE_KEY                                                                                               Recaptcha private key obtained after registration here:
65 b03877be Sofia Papagiannaki
ASTAKOS_RECAPTCHA_OPTIONS                   {'theme': 'white'}                                                              Options for customizing reCAPTCHA look and feel
66 b03877be Sofia Papagiannaki
67 b03877be Sofia Papagiannaki
ASTAKOS_LOGOUT_NEXT                                                                                                         Where the user should be redirected after logout
68 b03877be Sofia Papagiannaki
                                                                                                                            (if not set and no next parameter is defined it renders login page with message)
69 b03877be Sofia Papagiannaki
ASTAKOS_BILLING_FIELDS                      ['id', 'is_active', 'provider', 'third_party_identifier']                       AstakosUser fields to propagate in the billing system
70 b03877be Sofia Papagiannaki
ASTAKOS_QUEUE_CONNECTION                                                                                                    The queue connection ex. 'rabbitmq://guest:guest@localhost:5672/astakos'
71 b03877be Sofia Papagiannaki
                                                                                                                            (if it is not set, it does not send messages)
72 b03877be Sofia Papagiannaki
ASTAKOS_RE_USER_EMAIL_PATTERNS              []                                                                              Email patterns that are automatically activated ex. ['^[a-zA-Z0-9\._-]+@grnet\.gr$']
73 76776df1 Kostas Papadimitriou
74 b03877be Sofia Papagiannaki
ASTAKOS_LOGIN_MESSAGES                      {}                                                                              Notification messages to display on login page header
75 b03877be Sofia Papagiannaki
                                                                                                                            e.g. {'warning': 'Warning message (can contain html)'}
76 b03877be Sofia Papagiannaki
ASTAKOS_PROFILE_EXTRA_LINKS                 {}                                                                              Messages to display as extra actions in account forms
77 b03877be Sofia Papagiannaki
                                                                                                                            e.g. {'': 'Back to ~okeanos'}
78 b03877be Sofia Papagiannaki
ASTAKOS_RATELIMIT_RETRIES_ALLOWED           3                                                                               Number of unsuccessful login requests per minute allowed for a specific account.
79 b03877be Sofia Papagiannaki
                                                                                                                            When this number exceeds and ASTAKOS_RECAPTCHA_ENABLED is set the user has to solve a
80 b03877be Sofia Papagiannaki
                                                                                                                            captcha challenge.
81 b03877be Sofia Papagiannaki
ASTAKOS_EMAILCHANGE_ENABLED                 False                                                                           Enable email change mechanism
82 b03877be Sofia Papagiannaki
ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS         10                                                                              Number of days that email change requests remain active
83 b03877be Sofia Papagiannaki
ASTAKOS_LOGGING_LEVEL                       INFO                                                                            Message logging severity
84 b03877be Sofia Papagiannaki
ASTAKOS_INVITATION_EMAIL_SUBJECT            'Invitation to %s alpha2 testing' % SITENAME                                    Invitation email subject
85 b03877be Sofia Papagiannaki
ASTAKOS_GREETING_EMAIL_SUBJECT              'Welcome to %s alpha2 testing' % SITENAME                                       Welcome email subject
86 b03877be Sofia Papagiannaki
ASTAKOS_FEEDBACK_EMAIL_SUBJECT              'Feedback from %s alpha2 testing' % SITENAME                                    Feedback email subject
87 b03877be Sofia Papagiannaki
ASTAKOS_VERIFICATION_EMAIL_SUBJECT          '%s alpha2 testing account activation is needed' % SITENAME                     Account activation email subject
88 952c0979 Sofia Papagiannaki
ASTAKOS_ACCOUNT_CREATION_SUBJECT            '%s alpha2 testing account created (%%(user)s)' % SITENAME                      Account creation email subject
89 952c0979 Sofia Papagiannaki
ASTAKOS_GROUP_CREATION_SUBJECT              '%s alpha2 testing group created (%%(group)s)' % SITENAME                       Group creation email subject
90 b03877be Sofia Papagiannaki
ASTAKOS_HELPDESK_NOTIFICATION_EMAIL_SUBJECT '%s alpha2 testing account activated (%%(user)s)' % SITENAME                    Account activation helpdesk notification email subject
91 b03877be Sofia Papagiannaki
ASTAKOS_EMAIL_CHANGE_EMAIL_SUBJECT          'Email change on %s alpha2 testing' % SITENAME                                  Email change subject               
92 b03877be Sofia Papagiannaki
ASTAKOS_PASSWORD_RESET_EMAIL_SUBJECT        'Password reset on %s alpha2 testing' % SITENAME                                Password change email subject
93 c4d1b547 Sofia Papagiannaki
ASTAKOS_PROJECT_CREATION_SUBJECT            '%s alpha2 testing project application created (%%(name)s)' % SITENAME          Project application creation subject
94 c4d1b547 Sofia Papagiannaki
ASTAKOS_PROJECT_APPROVED_SUBJECT            '%s alpha2 testing project application approved (%%(name)s)' % SITENAME         Project application approval subject
95 c4d1b547 Sofia Papagiannaki
ASTAKOS_PROJECT_TERMINATION_SUBJECT         '%s alpha2 testing project terminated (%%(name)s)' % SITENAME                   Project termination subject
96 c4d1b547 Sofia Papagiannaki
ASTAKOS_PROJECT_SUSPENSION_SUBJECT          '%s alpha2 testing project suspended (%%(name)s)' % SITENAME                    Project suspension subject
97 c4d1b547 Sofia Papagiannaki
ASTAKOS_PROJECT_MEMBERSHIP_CHANGE_SUBJECT   '%s alpha2 testing project membership changed (%%(name)s)' % SITENAME           Project membership change subject
98 485c713e Sofia Papagiannaki
99 30d92d1e Georgios D. Tsoukalas
ASTAKOS_QUOTAHOLDER_URL                     ''                                                                              The quotaholder URI
100 952c0979 Sofia Papagiannaki
                                                                                                                            e.g. ``http://localhost:8080/api/quotaholder/v``
101 30d92d1e Georgios D. Tsoukalas
ASTAKOS_QUOTAHOLDER_TOKEN                   ''                                                                              The secret token for accessing the quotaholder URI
102 30d92d1e Georgios D. Tsoukalas
103 952c0979 Sofia Papagiannaki
ASTAKOS_SERVICES                            {'cyclades': {'resources': [{'desc': 'Number of virtual machines',              Default cloud service information
104 1f3ad141 Sofia Papagiannaki
                                            'group': 'compute',
105 952c0979 Sofia Papagiannaki
                                            'name': 'vm',
106 952c0979 Sofia Papagiannaki
                                            'uplimit': 2},
107 952c0979 Sofia Papagiannaki
                                            {'desc': 'Virtual machine disk size',
108 1f3ad141 Sofia Papagiannaki
                                            'group': 'compute',
109 1f3ad141 Sofia Papagiannaki
                                            'name': 'diskspace',
110 952c0979 Sofia Papagiannaki
                                            'unit': 'GB',
111 952c0979 Sofia Papagiannaki
                                            'uplimit': 5},
112 952c0979 Sofia Papagiannaki
                                            {'desc': 'Number of virtual machine processors',
113 1f3ad141 Sofia Papagiannaki
                                            'group': 'compute',
114 952c0979 Sofia Papagiannaki
                                            'name': 'cpu',
115 952c0979 Sofia Papagiannaki
                                            'uplimit': 1},
116 952c0979 Sofia Papagiannaki
                                            {'desc': 'Virtual machines',
117 1f3ad141 Sofia Papagiannaki
                                            'group': 'compute',
118 952c0979 Sofia Papagiannaki
                                            'name': 'ram',
119 952c0979 Sofia Papagiannaki
                                            'unit': 'MB',
120 952c0979 Sofia Papagiannaki
                                            'uplimit': 1024}],
121 952c0979 Sofia Papagiannaki
                                            'url': ''},
122 952c0979 Sofia Papagiannaki
                                            'pithos+': {'resources': [{'desc': 'Pithos account diskspace',
123 1f3ad141 Sofia Papagiannaki
                                            'group': 'storage',
124 952c0979 Sofia Papagiannaki
                                            'name': 'diskspace',
125 952c0979 Sofia Papagiannaki
                                            'unit': 'bytes',
126 952c0979 Sofia Papagiannaki
                                            'uplimit': 5368709120}],
127 952c0979 Sofia Papagiannaki
                                            'url': ''}}                                                                               
128 8cc49f4d Sofia Papagiannaki
ASTAKOS_AQUARIUM_URL                        ''                                                                              The billing (aquarium) URI
129 952c0979 Sofia Papagiannaki
                                                                                                                            e.g. ``http://localhost:8888/user``
130 8cc49f4d Sofia Papagiannaki
ASTAKOS_PAGINATE_BY                         10                                                                              Number of object to be displayed per page
131 485c713e Sofia Papagiannaki
132 ee210d1d Sofia Papagiannaki
ASTAKOS_NEWPASSWD_INVALIDATE_TOKEN          True                                                                            Enforce token renewal on password change/reset. If set to False, user can optionally decide
133 48e9f076 Sofia Papagiannaki
                                                                                                                            whether to renew the token or not.
134 678b2236 Sofia Papagiannaki
ASTAKOS_ENABLE_LOCAL_ACCOUNT_MIGRATION      True                                                                            Permit local account migration to third party account
135 b03877be Sofia Papagiannaki
=========================================== =============================================================================   ===========================================================================================
136 e0bfcf77 Antony Chazapis
137 e0bfcf77 Antony Chazapis
Administrator functions
138 e0bfcf77 Antony Chazapis
139 e0bfcf77 Antony Chazapis
140 e0bfcf77 Antony Chazapis
Available as extensions to Django's command-line management utility:
141 e0bfcf77 Antony Chazapis
142 d01e7b22 Antony Chazapis
===============  ===========================
143 d01e7b22 Antony Chazapis
Name             Description
144 d01e7b22 Antony Chazapis
===============  ===========================
145 18ffbee1 Sofia Papagiannaki
addgroup         Add new group
146 18ffbee1 Sofia Papagiannaki
addterms         Add new approval terms
147 d01e7b22 Antony Chazapis
createuser       Create a user
148 d01e7b22 Antony Chazapis
inviteuser       Invite a user
149 18ffbee1 Sofia Papagiannaki
listgroups       List groups
150 d01e7b22 Antony Chazapis
listinvitations  List invitations
151 d01e7b22 Antony Chazapis
listusers        List users
152 d01e7b22 Antony Chazapis
modifyuser       Modify a user's attributes
153 18ffbee1 Sofia Papagiannaki
sendactivation   Send activation email
154 d01e7b22 Antony Chazapis
showinvitation   Show invitation info
155 d01e7b22 Antony Chazapis
showuser         Show user info
156 d01e7b22 Antony Chazapis
===============  ===========================
157 18ffbee1 Sofia Papagiannaki
158 18ffbee1 Sofia Papagiannaki
To update user credibility from the billing system (Aquarium), enable the queue, install snf-pithos-tools and use ``pithos-dispatcher``::
159 18ffbee1 Sofia Papagiannaki
160 4f78c22c Sofia Papagiannaki
    pithos-dispatcher --exchange=aquarium