Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code refactoring #64

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Commits on Aug 31, 2016

  1. Configuration menu
    Copy the full SHA
    bc8324e View commit details
    Browse the repository at this point in the history
  2. Do not run Doorkeper's authorization method if oauth2 scope is set to…

    … 'false'. Particularily useful when using WineBouncer in the grape-swagger for hiding certain endpoints for different kind of users. In this case oauth2 'false' is set on the GET swagger_doc endpoint making the doorkeeper_access_token available further in the process of building API endpoints.
    texpert committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    3074ad2 View commit details
    Browse the repository at this point in the history
  3. Updated Travis matrix to test with Grape 0.17.0 version instead of 0.…

    …16.2
    
    Updated Grape, Rails and Doorkeeper default versions in the Gemfile.
    texpert committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    a7c6ee1 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2016

  1. Made resourse_owner available in the endpoint and passed to Doorkeepe…

    …r's admin authenticator instead of the token.
    
    Greatly simplified :swagger AuthStrategy methods.
    texpert committed Sep 30, 2016
    Configuration menu
    Copy the full SHA
    f7b694c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    647c89e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c6a0964 View commit details
    Browse the repository at this point in the history
  4. Removed obsolete methods and enriched some checks of auth and scope k…

    …eys.
    
    Restricted to Grape 0.16 minimum since the new router and syntax.
    texpert committed Sep 30, 2016
    Configuration menu
    Copy the full SHA
    6c4b523 View commit details
    Browse the repository at this point in the history
  5. Travis didn't found Grape 0.16, so - 0.16.2 will be minimal version.

    Also updated in README.md minimal version of Doorkeeper to tested 3.1.0.
    texpert committed Sep 30, 2016
    Configuration menu
    Copy the full SHA
    987c02f View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2016

  1. Let Doorkeeper handle token authorization and auth error handling - i…

    …t's not this gem's responsibility, no need to override and new exception classes.
    
    Removed more obsolete auth_methods.
    texpert committed Oct 3, 2016
    Configuration menu
    Copy the full SHA
    a9bf80d View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2016

  1. Version bumped to 1.1.0.

    Modularized AuthStrategies instead of them being instantiated as Classes.
    The configured auth_strategy is included now into the middleware on WineBouncer initialization, not on every request.
    DRYed the middleware.
    texpert committed Oct 5, 2016
    Configuration menu
    Copy the full SHA
    94c6f30 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2016

  1. Fixed the test failures.

    texpert committed Oct 6, 2016
    Configuration menu
    Copy the full SHA
    7c1bde1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bd923d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b53c325 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32e28a3 View commit details
    Browse the repository at this point in the history
  5. Inject inline defied scopes into route' description's :security hash.

    If auth_strategy is protected, inject Doorkeeper's default scopes into :security hash.
    Set :protected boolean on the route to make it fast available on requests' processing.
    texpert committed Oct 6, 2016
    Configuration menu
    Copy the full SHA
    6a511c4 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2016

  1. Set Doorkeeper default scopes if no scopes specified inline.

    Mark endpoint as protected if 'false' scope present.
    On :protected auth_strategy and empty scopes, use Doorkeeper's default scopes.
    texpert committed Oct 11, 2016
    Configuration menu
    Copy the full SHA
    35dba09 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2016

  1. Refactored auth_strategies to helpers ad scope fetching methods.

    Auth strategies could now coexist - configured as an array.
    Made Rubocop happy.
    Swagger 2.0 strategy implemented (specs not written yet).
    texpert committed Oct 17, 2016
    Configuration menu
    Copy the full SHA
    9843ce7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ecfe47 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2016

  1. Configuration menu
    Copy the full SHA
    8fc2d2a View commit details
    Browse the repository at this point in the history
  2. Grape support restricted to 0.15 - 0.18.

    Docs updated.
    texpert committed Oct 18, 2016
    Configuration menu
    Copy the full SHA
    13ca882 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb73913 View commit details
    Browse the repository at this point in the history