4 weeks ago
Hello experts,
I have implemented XSUAA authentication on my sap cap full stack project which is deployed on cloud foundry by following the article of Thomas Jung.
https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html
I have also implemented Cloud identity services for user login, for that i have added redirecting uris.
{
"xsappname": "StmPortal",
"tenant-mode": "dedicated",
"scopes": [
{
"name": "$XSAPPNAME.Admin",
"description": "Admin"
}
],
"attributes": [],
"role-templates": [
{
"name": "Admin",
"description": "generated",
"scope-references": [
"$XSAPPNAME.Admin"
],
"attribute-references": []
}
],
"oauth2-configuration": {
"credential-types": [
"binding-secret",
"x509"
],
"redirect-uris": [
"http://localhost:5000/**",
"http://localhost:5000/login/callback**",
"https://*.applicationstudio.cloud.sap/**",
"https://*.cfapps.us10-001.hana.ondemand.com/**",
"https://*.cfapps.us10-001.hana.ondemand.com/login/callback",
"https://*.trial-accounts.ondemand.com/**",
"https://*.trial-accounts.ondemand.com/login/callback**"
]
}
}
I am able to call GET request and fetch the data through my deployed app url after authentication.
But when i try to call a POST request it give 403 forbidden error.
I have also assigned role for the admin.
Please help me to figure it out.
Request clarification before answering.
check if this helps
https://cap.cloud.sap/docs/node.js/remote-services#csrf-token-handling
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
50 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.