Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
6e4c609e
Commit
6e4c609e
authored
Feb 26, 2012
by
Sofia Papagiannaki
Browse files
Merge branch 'master' of
https://code.grnet.gr/git/astakos
into cloudbar
parents
ded3a1b7
d01e7b22
Changes
9
Hide whitespace changes
Inline
Side-by-side
LICENSE
deleted
100644 → 0
View file @
ded3a1b7
Copyright 2011-2012 GRNET S.A. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and
documentation are those of the authors and should not be
interpreted as representing official policies, either expressed
or implied, of GRNET S.A.
README
deleted
100644 → 0
View file @
ded3a1b7
README
======
Astakos is an identity management service, built by GRNET using Django (https://www.djangoproject.com/).
Learn more about Astakos at: http://code.grnet.gr/projects/astakos
Consult LICENSE for licensing information.
Documentation
-------------
All docs are in the docs/source directory. The .rst files are perfectly readable in source form.
To build the documentation you need to have Sphinx (http://sphinx.pocoo.org/) installed.
On a typical debian-based Linux system run:
apt-get install python-django python-django-south python-setuptools python-sphinx python-httplib2
Then run:
python setup.py build_sphinx
The documentation will be built in the docs/build/html directory.
Also run:
python setup.py build_sphinx -b text
Then find the plain text version of the docs in docs/build/text.
Running the server
------------------
Make sure you have all required packages installed:
apt-get install python-django python-django-south python-setuptools python-sphinx python-httplib2
Then run:
python manage.py syncdb
python manage.py migrate im
python manage.py loaddata admin_user
python manage.py runserver
This server is useful during development, but should not be used for deployment.
To deploy Astakos using Apache, take a look at the Administrator Guide in docs.
snf-astakos-app/COPYRIGHT
View file @
6e4c609e
Copyright 2011 GRNET S.A. All rights reserved.
Copyright 2011
-2012
GRNET S.A. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
...
...
snf-astakos-app/README
View file @
6e4c609e
README
======
Astakos is an identity management service, built by GRNET using Django (https://www.djangoproject.com/).
Learn more about Astakos at: http://code.grnet.gr/projects/astakos
Consult COPYRIGHT for licensing information.
About Astakos application
-------------------------
This package contains the Django application that implements all identity management functions.
How to run
----------
Use snf-webproject to run Astakos automatically.
To use Astakos in a custom Django project, add ``astakos.im`` to ``INSTALLED_APPS``. Astakos requires South (http://south.aeracode.org/).
Also, add the following to your ``settings.py``::
TEMPLATE_CONTEXT_PROCESSORS = (
...
'astakos.im.context_processors.cloudbar',
'astakos.im.context_processors.im_modules',
'astakos.im.context_processors.next',
'astakos.im.context_processors.code',
'astakos.im.context_processors.invitations')
AUTHENTICATION_BACKENDS = ('astakos.im.auth_backends.EmailBackend',
'astakos.im.auth_backends.TokenBackend')
CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'
LOGIN_URL = '/im'
Settings
--------
Configure in ``settings.py`` or a ``.conf`` file in ``/etc/synnefo`` if using snf-webproject.
=============================== ================================================ ============================================================
Name Default value Description
=============================== ================================================ ============================================================
...
=============================== ================================================ ============================================================
Administrator functions
-----------------------
Available as extensions to Django's command-line management utility:
=============== ===========================
Name Description
=============== ===========================
activateuser Activates one or more users
createuser Create a user
inviteuser Invite a user
listinvitations List invitations
listusers List users
modifyuser Modify a user's attributes
showinvitation Show invitation info
showuser Show user info
=============== ===========================
snf-astakos-app/astakos/im/management/commands/createuser.py
View file @
6e4c609e
...
...
@@ -48,7 +48,7 @@ def generate_password():
class
Command
(
BaseCommand
):
args
=
"<email> <first name> <last name> <affiliation>"
help
=
"
Modify
a user
's attributes
"
help
=
"
Create
a user"
option_list
=
BaseCommand
.
option_list
+
(
make_option
(
'--active'
,
...
...
snf-astakos-app/astakos/im/management/commands/inviteuser.py
View file @
6e4c609e
...
...
@@ -44,7 +44,7 @@ from ._common import get_user
class
Command
(
BaseCommand
):
args
=
"<inviter id or email> <email> <real name>"
help
=
"
Activates one or more
user
s
"
help
=
"
Invite a
user"
def
handle
(
self
,
*
args
,
**
options
):
if
len
(
args
)
!=
3
:
...
...
snf-astakos-app/astakos/im/management/commands/listinvitations.py
View file @
6e4c609e
...
...
@@ -41,7 +41,7 @@ from ._common import format_bool
class
Command
(
BaseCommand
):
help
=
"List
user
s"
help
=
"List
invitation
s"
option_list
=
BaseCommand
.
option_list
+
(
make_option
(
'-c'
,
...
...
snf-astakos-app/astakos/im/management/commands/showinvitation.py
View file @
6e4c609e
...
...
@@ -39,7 +39,7 @@ from ._common import format_bool, format_date
class
Command
(
BaseCommand
):
help
=
"Show
user
info"
help
=
"Show
invitation
info"
def
handle
(
self
,
*
args
,
**
options
):
if
len
(
args
)
!=
1
:
...
...
snf-astakos-app/astakos/im/settings.py
View file @
6e4c609e
from
django.conf
import
settings
from
os.path
import
abspath
,
dirname
,
join
from
urlparse
import
urlparse
# Set the expiration time of newly created auth tokens
# to be this many hours after their creation time.
...
...
@@ -52,4 +50,4 @@ SITENAME = getattr(settings, 'ASTAKOS_SITENAME', 'GRNET Cloud')
CLOUD_SERVICES
=
getattr
(
settings
,
'ASTAKOS_CLOUD_SERVICES'
,
(
{
'url'
:
'/'
,
'name'
:
'grnet cloud'
,
'id'
:
'cloud'
,
'icon'
:
'home-icon.png'
},
{
'url'
:
'/okeanos.html'
,
'name'
:
'~okeanos'
,
'id'
:
'okeanos'
},
{
'url'
:
'/ui/'
,
'name'
:
'pithos+'
,
'id'
:
'pithos'
}))
\ No newline at end of file
{
'url'
:
'/ui/'
,
'name'
:
'pithos+'
,
'id'
:
'pithos'
}))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment