Azure / data-api-builder

Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
https://aka.ms/dab/docs
MIT License
787 stars 142 forks source link

Data api builder JWT authentication not working locally. #2278

Open saksham-kakkar opened 6 days ago

saksham-kakkar commented 6 days ago

I'm using Data api builder for one of my databases locally. I've tried to setup JWT authentication, but i keep getting this error and i'm unable to get around it.

Error: Failed to validate the token. Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10500: Signature validation failed. No security keys were provided to validate the signature.

I've attached my dab-config.json, the server(JS file attached as txt as JS file upload isn't supported) which i'm using as issuer.

From the error i'm able to infer that the security keys aren't provided, but i'm unable to figure out any way to pass it. I've checked dab.draft.schema.json, and there's no key corresponding to it.

Please let me know if anything else is required.

Please help me fix this issue.

server.js.txt dab-config.json