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

oauth2: Adds JWT Access Token strategy #947

Merged
merged 4 commits into from
Jul 23, 2018
Merged

oauth2: Adds JWT Access Token strategy #947

merged 4 commits into from
Jul 23, 2018

Commits on Jul 22, 2018

  1. cmd: Resolves panic when network fails

    Signed-off-by: arekkas <aeneas@ory.am>
    arekkas committed Jul 22, 2018
    Configuration menu
    Copy the full SHA
    16115f2 View commit details
    Browse the repository at this point in the history
  2. oauth2: Adds JWT Access Token strategy

    This patch adds the (experimental) ability to issue JSON Web Tokens instead of ORY Hydra's opaque access tokens. Please be aware that this feature has had little real-world and unit testing and may not be suitable for production.
    
    Simple integration tests using the JWT strategy have been added to ensure functionality.
    
    To use the new JWT strategy, set environment variable `OAUTH2_ACCESS_TOKEN_STRATEGY` to `jwt`. For example: `export OAUTH2_ACCESS_TOKEN_STRATEGY=jwt`.
    
    Please be aware that we (ORY) do not recommend using the JWT strategy for various reasons. If you can, use the default and recommended "opaque" strategy instead.
    
    Closes #248
    
    Signed-off-by: arekkas <aeneas@ory.am>
    arekkas committed Jul 22, 2018
    Configuration menu
    Copy the full SHA
    eb70025 View commit details
    Browse the repository at this point in the history
  3. client: Deprecate field id, now only client_id is to be used

    Signed-off-by: arekkas <aeneas@ory.am>
    arekkas committed Jul 22, 2018
    Configuration menu
    Copy the full SHA
    d3b4e77 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2018

  1. oauth2: Add and enhance access/refresh token tests

    This patch introduces more tests for code and refresh flows and the JWT
    strategy.
    
    Signed-off-by: arekkas <aeneas@ory.am>
    arekkas committed Jul 23, 2018
    Configuration menu
    Copy the full SHA
    388ee27 View commit details
    Browse the repository at this point in the history