8000 Comparing 1.1...master · SermoDigital/jose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SermoDigital/jose
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1
Choose a base ref
...
head repository: SermoDigital/jose
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 2 files changed
  • 3 contributors

Commits on Dec 5, 2016

  1. Configuration menu
    Copy the full SHA
    2bd9b81 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2018

  1. jwt_test: Fix test assertions to use || instead of &&

    Two of the test cases in jwt_test.go perform several checks against the
    claimset but require that all of them be true (&&) in order to trigger
    the assert. More than likely, this is not the desired behavior and the
    error should actually be triggered if any (||) of the conditions is
    true.
    
    This change modifies TestJWTValidator and TestBasicJWT to use || instead
    of && to chain the conditionals in their assertion.
    mark-adams committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    4b6f62d View commit details
    Browse the repository at this point in the history
  2. jwt_test: Fix the way scopes were being checked in the test

    After fixing the tests to properly check all the conditionals, the
    TestBasicJWT test began to fail because calling .Get('scopes') to
    retrieve the scopes claim returns an interface{} which cannot be
    converted into the []string value via a type assertion because it's
    actually an []interface{} under the hood.
    
    The way to fix that is to change the type assertion to assert to
    []interface{} and then compare against the [0] value in that slice.
    mark-adams committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    a0450dd View commit details
    Browse the repository at this point in the history
  3. Merge pull request #35 from mark-adams/fix-tests

    Minor fixes to jwt_test.go
    ericlagergren authored Jan 4, 2018
    Configuration menu
    Copy the full SHA
    803625b View commit details
    Browse the repository at this point in the history
Loading
0