Skip to content

hydra-cli: hydra token user --audience #2266

Answered by k9ert
pommelinho asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to reproduce and could get it to work by removing the ",test" when starting "token user". So it seems to work requesting one audience but not more than one. Also it seems that both values got added properly via "+" like this:

GET
	http://127.0.0.1:4444/oauth2/auth?audience=gastrograph+test&client_id=gastromatic-web-server&max_age=0&nonce=ryqhoxnmvzxgihexkgrqlbmp&prompt=&redirect_uri=http://127.0.0.1:9010/callback&response_type=code&scope=openid offline&state=kgyactxzdwgjikwawycqenip

And it's also correct how you added both audiences:

➜  hydra git:(master) hydra clients get gastromatic-web-server --endpoint  http://127.0.0.1:4445/
{
	"audience": [
		"gastrograph",
		"test"
	],
	"c…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pommelinho
Comment options

@pommelinho
Comment options

@aeneasr
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants