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

$RestxSession special header, more samples in AppModule generated file (app.name, security) & test harness for restx-core-shell #40

Merged
merged 20 commits into from
Sep 1, 2013

Commits on Aug 28, 2013

  1. Configuration menu
    Copy the full SHA
    62aeec2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3972e82 View commit details
    Browse the repository at this point in the history
  3. Added UserRepository.java class,

    allowing to mimic some User in-memory DAO
    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    daff9f0 View commit details
    Browse the repository at this point in the history
  4. Provided implementation for basicPrincipalAuthenticator() in AppModule

    Relying on UserRepository injected component
    Replaced HelloResource @permitAll by @RolesAllowed("hello-role")
    Added dep on restx-admin (thus on restx-security-basic)
    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    cfb97d7 View commit details
    Browse the repository at this point in the history
  5. Provided spec tests trying to call hello route

    with different users (and roles)
    
    Had a hard part to be able to sign cookie whereas signature key was randomly generated :
    I had to provide a Mustache template block in order to succeed
    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    867eda2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4006d87 View commit details
    Browse the repository at this point in the history
  7. Created SignatureKey.DEFAULT

    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    bfed533 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dd7a592 View commit details
    Browse the repository at this point in the history
  9. Introduced special "$RestxSession:" header for when clauses

    This will generate a RestxSession cookie with corresponding signature
    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    09aa537 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1e64106 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5ef649f View commit details
    Browse the repository at this point in the history
  12. removed useless generateSignatureFor() mustache template block

    Replaced by $RestxSession special header
    fcamblor committed Aug 28, 2013
    Configuration menu
    Copy the full SHA
    992fc61 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2013

  1. Configuration menu
    Copy the full SHA
    b9cd78c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1b38e0 View commit details
    Browse the repository at this point in the history
  3. Extracted RestxSpec inner classes to upper classes

    and moved imports/references accordingly
    fcamblor committed Aug 29, 2013
    Configuration menu
    Copy the full SHA
    cf2e31e View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2013

  1. Transforming cookies map into an immutable map inside

    WhenHttpRequest constructor
    fcamblor committed Aug 30, 2013
    Configuration menu
    Copy the full SHA
    d6d460c View commit details
    Browse the repository at this point in the history
  2. Refactored WhenHttpRequest instanciation in

    RestxSpecLoader with a builder,
    thus removing adherence to cookies in WhenHeaders.fillCookiesFromValue()
    (which was renamed to readHeader())
    fcamblor committed Aug 30, 2013
    Configuration menu
    Copy the full SHA
    47bf2b2 View commit details
    Browse the repository at this point in the history
  3. Considering shell-dependent modules as module to build "in the end"

    These modules could generate some restx app during tests,
    and when executing maven on these generated apps,
    every "standard" restx modules should have been installed in local maven repo to be
    correctly resolved
    fcamblor committed Aug 30, 2013
    Configuration menu
    Copy the full SHA
    0963bdb View commit details
    Browse the repository at this point in the history
  4. Transformed RestxSpecLoader.WhenHeaders enum into a @component

    Thus allowing to inject SignatureKey & RestxSessionCookieDesriptor when needed
    Will eventually allow to have these WhenHeaders pluggables
    fcamblor committed Aug 30, 2013
    Configuration menu
    Copy the full SHA
    5b744fc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    055edd3 View commit details
    Browse the repository at this point in the history