cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Authentication kind "jwt" configured, but no XSUAA instance bound

somnath
Active Participant
0 Kudos

Hello,

I was simply trying to deploy sample cap project to BTP CF (Trial) but every time it failed with deployment, with the following reason: Error: Authentication kind "jwt" configured, but no XSUAA instance bound to

I can see the error comes all the way from node_modules/@sap/cds/lib/auth/jwt-auth.js.

The project I created from template with minimal option I chose, and I didn't want to attach any security to my app. This works fine while testing locally but deploying it to BTP ending up with the above error.

Tried with some earlier versions of @Sap/cds but no luck. Is this a known error?

Can someone kindly confirm? or may I am missing some basics!

- Thanks, Somnath

 

View Entire Topic
Dinu
Contributor
0 Kudos

Not this is not a bug. This is the documented behavior. See authentication is enforced in production

You may explicitly enable mocked strategy in production by adding the following to file .cdsrc.json 

{
        "requires": {
                "auth": "mocked"
        }
}