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

Token validation failed for token #168

Open
sonsmartbear opened this issue Oct 18, 2022 · 3 comments
Open

Token validation failed for token #168

sonsmartbear opened this issue Oct 18, 2022 · 3 comments

Comments

@sonsmartbear
Copy link

Token validation failed. How I reproduce this error:

Step 1: docker-compose -f compose.yml -f kafka-oauth-strimzi/compose-ssl.yml -f keycloak/compose-ssl.yml -f keycloak-import/compose-ssl.yml up --build

Step 2: I open intellij and execute io.strimzi.examples.consumer.ExampleConsumer and io.strimzi.examples.producer.ExampleProducer => I can run as well. Apache Kafka + Zookeeper + Keycloak and ExampleConsumer/ExampleProducer run same a computer.

Step 3: Apache Kafka + Zookeeper + Keycloak run on one computer but ExampleConsumer/ExampleProducer run on a other computer then I get error like image below:

Screen Shot 2022-10-18 at 16 09 13

@sonsmartbear
Copy link
Author

@mstruk Do you have any opinions as error above. If you know please give some advises to me. Thanks

@sonsmartbear
Copy link
Author

Hi @mstruk and @scholzj
We need to configure nework as bridge for all containers (keycloak, zookeeper and kafka). You can see image as per below then the error will fixed

image

image

image

I don't have permission to commit my source code so I just informed you, let you fix them

Thanks and Best Regards

@scholzj
Copy link
Member

scholzj commented Oct 23, 2022

I don't have permission to commit my source code so I just informed you, let you fix them

Everyone can open a PR instead of sharing some screenshots which do not make it clear what the changes are.


You should probably also start by explaining what are you trying to do and what is the use-case. There are many different configurations and the examples do not cover all of them for obvious reasons. So sometimes, you might just need to change them to match your environment. That is not something unexpected.

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

2 participants