Replies: 2 comments
|
@jordanott Hi, most likely you need to build up a full response token. You can compare youre example to: #7136. I think it's the |
|
Your response is string bytes containing the claims only. Also your input msg was never decoded - you're going to need the nats.user_nkey from that input object. The response payload must contain your user claims, nested inside another json envelope. See examples below.
Inner User Claims need to match the specific format of the AuthorizationResponseClaims object. Ex: Authorization Response (Outer Envelope): |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am trying to follow this example
I have a python flask server than grants a react client a jwt. I want to use that jwt to authenticate the nats client and authorize it to access certain subjects.
I am trying to authenticate that client using an auth callout service. The message is received but I get an authentication error after
Here is the conf file
websocket { listen: 127.0.0.1:9222 compression: true no_tls: true allowed_origins: ["http://localhost:3000"] } accounts { AUTH: { users: [ { user: auth, password: auth } ] } APP: {} SYS: {} } system_account: SYS authorization { auth_callout { issuer: AA2WS5V5KIXTI26DFOT7DXSXHX3274WMESFPQ5FJSTR46G336WGVXUD4 auth_users: [ auth ] account: AUTH } }All reactions