i have a ledger to deploy to stimulate prod, here’s. my auth.conf
canton.participants.app-provider {
ledger-api {
auth-services = [{
type = jwt-jwks
target-audience = audience-apis
url = "http://localhost:8080/v1/auth/jwks"
}]
user-management-service.additional-admin-user-id = "user-id"
}
}
Beacause we wanted to use a additional admin user so we can use the token to do admin stuff, i need clarity on this
But it seems that the auth doesn’t work when i run the sandbox with
daml sandbox --config auth.conf
Because anything goes really, and it doesn’t hold back.
as opposed to this
canton.participants.sandbox.ledger-api.auth-services = [{
type = jwt-jwks
url = "http://localhost:8080/v1/auth/jwks"
# issuer = "my-auth-service-id"
}]
Also some part of the doc says we should set the jwttoken like this
{
"https://daml.com/ledger-api": {
"ledgerId": "sandbox",
"applicationId": "foobar",
"actAs": ["Alice"]
}
}
and yet i see this also
{
"aud": "https://daml.com/jwt/aud/participant/someParticipantId",
"sub": "someUserId",
"iss": "someIdpId",
"exp": 1300819380
}
which one is which.
Please also is the “sub”: “someUserId” the userID of the party?
Thanks