Comments (7)
Hi Manju,
You can follow the steps in the tutorial https://developers.sap.com/tutorials/s4sdk-secure-cloudfoundry.html for all steps except step 3. instead of step 3, can you try to add
<dependency>
<groupId>com.sap.cloud.security.xsuaa</groupId>
<artifactId>xsuaa-spring-boot-starter</artifactId>
<version>2.3.2</version>
</dependency>
and add the file: https://github.com/SAP-samples/cloud-espm-cloud-native/blob/master/product-service/src/main/java/com/sap/refapps/espm/config/AppSecurityConfig.java
to the objectStore projects config folder - https://github.com/SAP-samples/cloud-objectstore-java-sample/tree/master/src/main/java/com/sap/refapps/objectstore/config
from cloud-objectstore-java-sample.
Thank you @indusankar89 I will follow the steps and let you know the status. Thank you for your help.
from cloud-objectstore-java-sample.
Gettting this error while building the app after following the steps...
[47,39] cannot find symbol
[ERROR] symbol: method oauth2ResourceServer()
[ERROR] location: class org.springframework.security.config.annotation.web.builders.HttpSecurity
from cloud-objectstore-java-sample.
Hi @sathisha-bettegowda when did you get the above error? during build/deploy?
I tried to build and deploy by adding the mentioned dependency and file and it was successful..
from cloud-objectstore-java-sample.
thanks @indusankar89
modifying this helped
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
from cloud-objectstore-java-sample.
@indusankar89
After deploying the app router, we are getting unauthorized error, when we are trying to post anything to object,
Below are the sample of GET and POST request.
Could you please help us to understand what we are missing here,
Also in the xs-seurity.json, scope is limited to viewing.
"scopes": [
{
"name": "$XSAPPNAME.Display",
"description": "display"
}
],
"role-templates": [
{
"name": "Viewer",
"description": "Required to view things in our solution",
"scope-references" : [
"$XSAPPNAME.Display"
]
}
does this affect uploading/deleting files from object store?
from cloud-objectstore-java-sample.
Hi @indusankar89
Could please help us above.
from cloud-objectstore-java-sample.
Related Issues (18)
- Streaming support for upload/download content from/to object store HOT 1
- return HTTP Status 400 – Bad Request for any request HOT 5
- Unable to upload file in GCP landscape HOT 3
- 500 Internal Server Error: injection from VCAP_SERVICES not working HOT 1
- [rl-vulnerability_alerts-1] Violation against OSS Rules of Play HOT 1
- [rl-assigned_teams-2] Violation against OSS Rules of Play
- [rl-assigned_teams-3] Violation against OSS Rules of Play
- [rl-assigned_teams-1] Violation against OSS Rules of Play
- Unable to Create File HOT 2
- Using JClouds with Spring 2.7.* throws an exception HOT 1
- unable to get any serviceplan HOT 2
- When is the plan to support for azure blob storage via jcloud? HOT 1
- [rl-reuse_tool-4] Violation against OSS Rules of Play
- upload is failing - 500 internal server error HOT 6
- 404 Not Found error for POST request HOT 3
- Is there any admin page to manage blob storage? HOT 2
- Will enhance it to support Alibaba Cloud OSS with Jcloud? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-objectstore-java-sample.