1. 19 Apr, 2013 4 commits
  2. 18 Apr, 2013 10 commits
    • Giorgos Korfiatis's avatar
      656b360d
    • Giorgos Korfiatis's avatar
      astakos: Remove obsolete fields of AstakosUserQuota · 01b9c358
      Giorgos Korfiatis authored
      Remove quantity, import_limit, export_limit.
      Update user-set-initial-quota management command.
      01b9c358
    • Giorgos Korfiatis's avatar
      astakos: Remove obsolete project-related model fields · c84353c7
      Giorgos Korfiatis authored
      Several fields of models Project and ProjectMembership were related
      to the external syncing to quotaholder and have become obsolete since
      the inclusion of quotaholder in astakos.
      c84353c7
    • Kostas Papadimitriou's avatar
      09c39976
    • Kostas Papadimitriou's avatar
      Services api/presentation logic cleanup · 30713232
      Kostas Papadimitriou authored
      - Remove presentation information from Service model (order, icon)
      - To access the list of services filled with both presentation and api
        data use Service.catalog(). The method fills a dict with service
        identifiers and service metadata through the following steps
          - Initialize a service dict using
            astakos.im.presentation.service_defaults
          - Extend (merge and overwrite) it with the correspoding entry in
            astakos.im.presentation.SERVICES if exists.
          - Merge once again if user has set service metadata in
            ASTAKOS_SERVICE_META setting. This way user can change only the
            desired service parameters.
      
      - An example of ASTAKOS_SERVICE_META containing keys which
      
          ASTAKOS_SERVICE_META = {
              'myservice': {
                  'name': 'service_identifier',
                  'url': 'https://service.url/service/ui/',
                  'verbose_name': 'My service name',
                  'order': 1,
      
                  # cloudbar specific parameters
                  'cloudbar': {
                      'show': True,
                      'title': 'My service name in cloudbar'
                      # defaults to verbose_name
                  },
      
                  # dashboard specific parameters
                  'dashboard': {
                      'show': True,
                      # we use different ordering in dashboard
                      'order': 100,
                      'description': 'My service description'
                  }
              }
          }
      
      - Updated dashboard to use Service.catalog() instead of hardcoded
        html.
      - Updated service-* commands to keep up with model changes
      30713232
    • Kostas Papadimitriou's avatar
      4e8083bd
    • Kostas Papadimitriou's avatar
      Remove resource/service model dependencies · 9815050d
      Kostas Papadimitriou authored
      - Remove foreign key dependency between Service/Resource model. Replace
        it with a service CharField to keep track of the service identifier
        that the resource was registered from.
      - Remove all references to resource service name in resource lookups
      9815050d
    • Giorgos Korfiatis's avatar
      Import resources from definition and config files · a125b747
      Giorgos Korfiatis authored
      Register a service's resources giving option --json <file>.
      The json file is expected to represent a dictionary with keys
      "service" and "resources".
      
      Currently the default base quota (uplimit) for each resource is read
      from a configuration json file, given with --conf <file>. This file
      represents a dictionary with numeric values for each resource name.
      
      Upon importing the resources, the quotaholder has to be updated due to
      the modified resource limits.
      a125b747
    • Giorgos Korfiatis's avatar
      Make resource name independent of service name · 863cbecf
      Giorgos Korfiatis authored
      Also remove unused ResourceMetadata model.
      863cbecf
    • Giorgos Korfiatis's avatar
      Move resource data away from astakos settings · c89c8fca
      Giorgos Korfiatis authored
      UI-related presentation data go to presentation.py.
      Remove load_service_resources call and related astakos-init
      management command.
      c89c8fca
  3. 11 Apr, 2013 1 commit
  4. 08 Apr, 2013 2 commits
  5. 05 Apr, 2013 11 commits
  6. 26 Mar, 2013 2 commits
  7. 22 Mar, 2013 2 commits
  8. 21 Mar, 2013 1 commit
    • Giorgos Korfiatis's avatar
      Sync only quotas that differ · 9699e509
      Giorgos Korfiatis authored
      Refs #3479
      
      Database stack limit issue was triggered by syncing quotas for
      all users. It is much faster to compare quotas locally and send
      for sync to quotaholder only those that differ.
      9699e509
  9. 15 Mar, 2013 3 commits
    • Kostas Papadimitriou's avatar
      Auth providers improvements · ef4cb65f
      Kostas Papadimitriou authored
      - Improved logging
      - Messages changes
      - Fixes in local module login/add policies handling
      ef4cb65f
    • Kostas Papadimitriou's avatar
      Astakos logging improvements · 7dca7ef3
      Kostas Papadimitriou authored
      use the common user_log display method accross logging calls
      7dca7ef3
    • Kostas Papadimitriou's avatar
      Authentication providers improvements · 518bbefd
      Kostas Papadimitriou authored
      Major authentication provider refactoring to support
      
      - Modular and easily configurable messages with common context
      - Fine grained provider policies to support appling specific policies to
        users and/or groups
      
      Key points:
      
      - Use auth_providers.AuthProvider instances where auth provider logic is
        needed. Instances get properly initialized with the available context
        (with no user/signup view, with user/login view, with user and
        identifier/profile view).
      
      - All authentication provider messages are now accessed using the
        get_*_msg AuthProvider attributes.
      
      - Provider policies logic is handled from  get_*_policy attributes.
      
      - All provider messages may be overridden globally or per provider level from
        settings::
      
        # global change
        ASTAKOS_AUTH_PROVIDER_NOT_ACTIVE = 'Provider not active'
      
        # change only applies to shibboleth provider
        ASTAKOS_AUTH_PROVIDER_SHIBBOLETH_NOT_ACTIVE = 'Shibboleth is not  active'
      
      - Provider policies may be overridden in settings::
      
        # ALL users wont be able to add shibboleth login method from their
        # profile
        AUTH_PROVIDER_SHIBBOLETH_ADD_POLICY = False
      
      - New provider policies profile model added. Profiles can be assigned to
        a group or/and a specific user.
      
      - All tests updated to match the auth providers changes.
      
      - New management commands included
      
        * user-auth-policy-{add, list, remove, set, show}
          Manage authentication provider policy profiles.
      
        * user-group-{add, list}
          User group management commands
      
      - Updated user-list to optionally display auth provider information
      518bbefd
  10. 07 Mar, 2013 2 commits
  11. 06 Mar, 2013 1 commit
  12. 05 Mar, 2013 1 commit