1. 30 Oct, 2018 15 commits
  2. 28 Oct, 2018 1 commit
  3. 27 Oct, 2018 3 commits
  4. 25 Oct, 2018 8 commits
  5. 23 Oct, 2018 1 commit
  6. 21 Oct, 2018 12 commits
    • hellekin's avatar
      Add support for current_* · 5c31c588
      hellekin authored
      - current_user from request
      - current_agent from current_user (should be from auth_token hash)
      - Bug fix: User model can now auto-generate password if empty
      - Bug fix: User model now encrypts username for privacy
        - That means `find_by(username: params[:username])` is replaced by
          `find_by(sha256_hash: Digest::SHA256.hexdigest(params[:username]))`.
      5c31c588
    • hellekin's avatar
      Add pundit gem · df3c5e36
      hellekin authored
      - Add default Pundit policy
      df3c5e36
    • hellekin's avatar
      Add jsonapi-rb serializers · 02aed360
      hellekin authored
      02aed360
    • hellekin's avatar
      Add Incommon support libraries · 9fdc5aa4
      hellekin authored
      - API Routing Contraints (for MIME type and API version)
      - Utilities (e.g., constant-time string comparison)
      - API Key-related functionality
      - Placeholder for CORS origins support
      9fdc5aa4
    • hellekin's avatar
      Add API v0 controllers · 8f0a6d80
      hellekin authored
      - Classifications controllers: Taxonomies, Categories, Sections
      - Resources controllers: Resources, Agents
      - Abstract JSONAPI include filtering into ApplicationController
      8f0a6d80
    • hellekin's avatar
      Preview API routes · 5c0739c8
      hellekin authored
      - API and v0 scopes
      - Introduce v1 and v2 to give an idea of handling future routes
      - Introduce /agents and /resources routes to give an idea how to handle
      potentially conflicting routes for properties
      5c0739c8
    • hellekin's avatar
      Add Discourse SSO support · 7688ad59
      hellekin authored
      7688ad59
    • hellekin's avatar
      Consolidate configuration · 11600f32
      hellekin authored
      - Set default_url_options for host
      - Host depends on the environment (api.incommon.cc in production)
      - Add base locale file for English
      - Configure Puma to use sockets
      11600f32
    • hellekin's avatar
      Add users & roles · bedd247c
      hellekin authored
      - A User represents an individual person
      - An Agent is a collective Entity for Users
      - Users have Roles within the scope of an Agent, e.g.:
        Observer, Editor, Maintainer, Leader.
      bedd247c
    • hellekin's avatar
      Add Resource properties · d9832745
      hellekin authored
      - Resources have one or more properties:
        Address, Email, Link, Phone
      - Collections are composed of Resources of different types.
      d9832745
    • hellekin's avatar
      Add Resource model · 186429ef
      hellekin authored
      - Resource is an STI model with the following heirs:
        - Entity, Place, Service, Thing
      186429ef
    • hellekin's avatar
      Add Email model · 804a603c
      hellekin authored
      - Hashable and Encrypted:
        - an Email.address is stored encrypted
        - in order for it to be searchable, we maintain a hash of it
      - EmailHelper
        - add the #hash_email helper to support searching emails
      804a603c