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

Resolve regression issues related to foreign keys #1177

Closed
aeneasr opened this issue Nov 19, 2018 · 0 comments
Closed

Resolve regression issues related to foreign keys #1177

aeneasr opened this issue Nov 19, 2018 · 0 comments
Milestone

Comments

@aeneasr
Copy link
Member

aeneasr commented Nov 19, 2018

Client credentials flow

sh-4.3$ docker exec -it hydra_hydra_1 \
>     hydra clients create \
>     --endpoint http://localhost:4445 \
>     --id my-client \
>     --secret secret \
>     -g client_credentials
You should not provide secrets using command line flags, the secret might leak to bash history and similar systems
OAuth 2.0 Client ID: my-client
sh-4.3$ docker exec -it hydra_hydra_1 \
>     hydra token client \
>     --endpoint http://localhost:4444 \
>     --client-id my-client \
>     --client-secret secret
Could not retrieve access token because: oauth2: cannot fetch token: 500 Internal Server Error
Response: {"error":"error","error_description":"The error is unrecognizable.","status_code":500,"error_debug":"pq: insert or update on table \"hydra_oauth2_access\" violates foreign key constraint \"hydra_oauth2_access_request_id_fk\""}

Cause:

  • Client credentials flow does not use request_id's - we should be able to set it to NULL.
@aeneasr aeneasr added this to the v1.0.0-rc.1 milestone Nov 19, 2018
aeneasr added a commit that referenced this issue Nov 19, 2018
aeneasr added a commit that referenced this issue Nov 19, 2018
aeneasr added a commit that referenced this issue Nov 19, 2018
aeneasr added a commit that referenced this issue Nov 19, 2018
aeneasr added a commit that referenced this issue Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant