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

Missing "iss" field from /oauth2/introspect response #399

Closed
vorce opened this issue Mar 23, 2017 · 2 comments
Closed

Missing "iss" field from /oauth2/introspect response #399

vorce opened this issue Mar 23, 2017 · 2 comments
Assignees
Labels
bug Something is not working.
Milestone

Comments

@vorce
Copy link

vorce commented Mar 23, 2017

When making introspect calls I am not getting an "iss" field, despite having set the ISSUER env var.

Steps to reproduce:

docker run -d -e ISSUER=myawesomeissuer -e FORCE_ROOT_CLIENT_CREDENTIALS="admin:admin" -p 4445:4444 oryd/hydra:v0.7.7
TOKEN1=$(curl -s -kv -XPOST \
                --user 'admin:admin' \
                --url https://localhost:4445/oauth2/token \
                --header 'content-type: application/x-www-form-urlencoded' \
                --data 'grant_type=client_credentials&scope=hydra' | jq -r .access_token)
TOKEN2=$(curl -s -kv -XPOST \
                --user 'admin:admin' \
                --url https://localhost:4445/oauth2/token \
                --header 'content-type: application/x-www-form-urlencoded' \
                --data 'grant_type=client_credentials&scope=hydra' | jq -r .access_token)
curl -XPOST https://localhost:4445/oauth2/introspect -H "Authorization: bearer $TOKEN1" -d "token=$TOKEN2" -k
{"active":true,"scope":"hydra","client_id":"admin","sub":"admin","exp":1490274665,"iat":1490271065,"aud":"admin"}

Expected result: The introspect calls contains an "iss" field set to $ISSUER.

@vorce
Copy link
Author

vorce commented Mar 23, 2017

I just tried the same thing with oryd/hydra:latest with the same result.

@aeneasr aeneasr added the bug Something is not working. label Apr 9, 2017
@aeneasr
Copy link
Member

aeneasr commented Apr 9, 2017

Thank you for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants