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

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

Axon 4: Axon Framework + Axon Server for better business functionality

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

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.