Connecting Springboot App to Axon Server with Access Control enabled

Hello everyone,
I’m starting learning Axon Framework. I have configured Axon Server CE to enable access control

##############################################################

Running Axon Server - Going from local developer install to full-featured cluster in the cloud

##############################################################

axoniq.axonserver.name=axonserver
axoniq.axonserver.hostname=localhost
axoniq.axonserver.accesscontrol.enabled=true
axoniq.axonserver.accesscontrol.token=7ec12fdf-111e-4156-b4b3-9779d167601b

I then configured my springboot application with the token generated as per the following
Screenshot from 2021-04-07 14-46-52
When running the application, with of course the server running, i encounter the following issue

Connecting to AxonServer node [localhost:8124] failed: PERMISSION_DENIED: No token for io.axoniq.axonserver.grpc.control.PlatformService/GetPlatformServer

Could someone please give me some hints with this one?

I finally point out my issue : space in the config file led me to these difficulty.

Thanks

1 Like

Happy to hear you found and solved the problem yourself, @eosCorp.
Sharing the solution is always helpful, as it provides guidance to other readers too.
And, welcome the to forum! I notice your question was your first.
Hoping to see you back here in the future with other ideas and thoughts.