hydra-cli: hydra token user --audience #2266
-
Hey, i created my client with the following command
and then start the example web server with However when doing the Oauth Auth Flow i get the following error: Requested audience 'gastrograph+test' has not been whitelisted..... but this i do not understand as i whitelisted the two audiences IMHO when creating the client above? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I can't reproduce that right now but i can see the use of IP-addresses and "localhost" at the same time as a potential issue. I'd suggest to only use "127.0.0.1" instead of "localhost". Maybe that makes a difference?! |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for the response, unfortunately this does not solve the issue. |
Beta Was this translation helpful? Give feedback.
-
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:
And it's also correct how you added both audiences:
One other aspect is the request of an id-token via "--scope openid". That is imho not compatible with specifying an audience but it did not make a difference removing that. So i assume you definitely want to request two audiences, right?! |
Beta Was this translation helpful? Give feedback.
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:
And it's also correct how you added both audiences: