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

Implemented the DPoP token exchange #411

Merged
merged 12 commits into from
Oct 13, 2020
Merged

Implemented the DPoP token exchange #411

merged 12 commits into from
Oct 13, 2020

Commits on Oct 12, 2020

  1. Implemented the DPoP token exchange

    This implements the OAuth2 code exchange step: after an auth code has been returned by the IdP through redirection, the client can use the obtained auth code to get an access token. If the request has a DPoP header, the returned token is bound to the DPoP key.
    NSeydoux committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    204f15f View commit details
    Browse the repository at this point in the history
  2. Remove always skipped manual test

    Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
    NSeydoux and Vinnl committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    e6751b8 View commit details
    Browse the repository at this point in the history
  3. Fix linting issue

    NSeydoux committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    f0425b8 View commit details
    Browse the repository at this point in the history
  4. remove redundant JWK initialization

    The mockJwk reference is unefined when setting up the mock, but the mockJwk() function is defined when *calling* the mock. Thanks @Vinnl !
    NSeydoux committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    f3b0e84 View commit details
    Browse the repository at this point in the history
  5. Import jest instead of using global object

    Co-authored-by: Vincent <Vinnl@users.noreply.github.com>
    NSeydoux and Vinnl committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    7de58ae View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

  1. Removed dependency to core module

    The oidc module is independant from solid, so it should not depend on the core module, which is meant to be solid-specific. this implies some redundancy in the types implemented in both places, but that means that these types may evolve independantly, while still getting errors in case of incompatibility, which is a good thing.
    NSeydoux committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    bf8dd3e View commit details
    Browse the repository at this point in the history
  2. Added token_type verification

    The endpoint returns a token_type field, which can be used to verify that the token is of the requested type (Bearer or DPoP)
    NSeydoux committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    cb9ec0b View commit details
    Browse the repository at this point in the history
  3. Temporarily revert jest import

    Importing jest requires to change the jest config, so all the modules should be updated.
    NSeydoux committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    32f7dfe View commit details
    Browse the repository at this point in the history
  4. Update type import

    NSeydoux committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    90c8f4d View commit details
    Browse the repository at this point in the history
  5. Capitalize WebId

    NSeydoux committed Oct 13, 2020
    Configuration menu
    Copy the full SHA
    759e2b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    44808e6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    77e1054 View commit details
    Browse the repository at this point in the history