This is a placeholder README.md for a new repository
This code is open source software licensed under the Apache 2.0 License.
To enable the frontend (this service) to successfully talk to the backend microservice (card-payment-backend) you need to enable an internal auth token. Make sure you have the internal auth service running, e.g.:
sm2 --start INTERNAL_AUTH INTERNAL_AUTH_FRONTEND --appendArgs '{"INTERNAL_AUTH": ["-Dapplication.router=testOnlyDoNotUseInAppConf.Routes"], "INTERNAL_AUTH_FRONTEND": ["-Dapplication.router=testOnlyDoNotUseInAppConf.Routes"]}'
And then insert a token:
curl --request POST \
--url http://localhost:8470/test-only/token \
--header 'content-type: application/json' \
--data '{
"token": "123456",
"principal": "card-payment-frontend",
"permissions": [{
"resourceType": "card-payment",
"resourceLocation": "card-payment/*",
"actions": ["READ", "WRITE"]
}]
}'