https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/SAP-BTP-Security-qa.xml SAP Community - SAP BTP Security 2024-10-06T08:00:22.137652+00:00 python-feedgen SAP BTP Security Q&A in SAP Community https://community.sap.com/t5/technology-q-a/sap-authorization-and-trust-management-service-authorization-api-role/qaq-p/13775177 SAP Authorization and Trust Management Service - Authorization API: Role Collections all subaccount 2024-07-29T09:27:40.260000+02:00 Cristian https://community.sap.com/t5/user/viewprofilepage/user-id/6658 <P>Good morning,</P><P>We have a requirement to list the role collections of our subaccounts and their assigned IAS groups.</P><P>I am looking into the Authorization API:</P><P><A href="https://api.sap.com/api/AuthorizationAPI/overview" target="_blank" rel="noopener noreferrer">https://api.sap.com/api/AuthorizationAPI/overview</A></P><P>This works fine. I create an XSUAA instance in a subaccount with plan api-access and I can get the role collections without any problem. The challenge comes when we want to achieve that for several subaccounts. Does this mean that we neeed to create an XSUAA instance in each subaccount and that we would need to call N times the API, each for each subaccount? Is it possible at all to achieve that at account level preventing us to create as many XSUAA instances as subaccounts?</P><P>Many thanks!</P><P>C.</P><P>&nbsp;</P><P>&nbsp;</P> 2024-07-29T09:27:40.260000+02:00 https://community.sap.com/t5/technology-q-a/use-servicebinding-data-for-apirule-jwt-accessstrategies-configuration/qaq-p/13775984 Use ServiceBinding data for APIRule jwt accessStrategies configuration 2024-07-29T22:21:35.006000+02:00 gregorw https://community.sap.com/t5/user/viewprofilepage/user-id/12545 <P>Hello Kyma Experts,</P><P>when using the helm charts generated by CAP there is a&nbsp;ServiceBinding to XSUAA which is used via a&nbsp;</P><DIV><SPAN>volume mount of the service binding&nbsp;</SPAN><SPAN>secretName. I would like to use this secrets also in the&nbsp;APIRule for a&nbsp;jwt accessStrategies configuration. In <A href="https://github.com/gregorwolf/cap-azure-ad-b2c/blob/main/kyma/deployment.yaml#L49" target="_blank" rel="nofollow noopener noreferrer">https://github.com/gregorwolf/cap-azure-ad-b2c/blob/main/kyma/deployment.yaml#L49</A>&nbsp;I did this manually with a static configuration of the&nbsp;trusted_issuers and&nbsp;jwks_urls. But I want to get the configuration be flexible so I do not need to adjust it between dev / qa and production.</SPAN></DIV><DIV><SPAN>Best Regards<BR />Gregor</SPAN></DIV> 2024-07-29T22:21:35.006000+02:00 https://community.sap.com/t5/technology-q-a/connect-2-sap-btp-accounts/qaq-p/13779719 Connect 2 SAP BTP accounts 2024-08-01T12:41:02.127000+02:00 menenita01 https://community.sap.com/t5/user/viewprofilepage/user-id/13007 <P>Hi experts,</P><P>I would like to check if it is possible to connect 2 SAP BTP account to transfer information from one to another one (using the SAP BTP APIs enabled for that, for sharing information about the security settings or the subaccounts). If it is possible, how should I perform this connection?</P><P>Thank you!</P><P>Regards.</P> 2024-08-01T12:41:02.127000+02:00 https://community.sap.com/t5/technology-q-a/roles-objetos-de-autorizaciones-perfiles-sap-basis/qaq-p/13789978 ROLES, OBJETOS DE AUTORIZACIONES,PERFILES SAP BASIS 2024-08-10T09:03:46.214000+02:00 LuisMendoza https://community.sap.com/t5/user/viewprofilepage/user-id/1488239 <P>How can I see the objects authorization of a transaction and, how can I configure the authorizations o permissions.</P><P>Thank you</P><P>Como puedo ver los objetos de autorización de una transacción y como puedo configurarla para dar los accesos o permisos necesarios.</P><P>Gracias</P><P>&nbsp;</P> 2024-08-10T09:03:46.214000+02:00 https://community.sap.com/t5/technology-q-a/cap-node-js-authorization-unable-to-retrieve-user-logged-scopes/qaq-p/13800981 CAP Node Js Authorization: Unable to retrieve User logged scopes 2024-08-20T16:22:12.582000+02:00 TinhLeo https://community.sap.com/t5/user/viewprofilepage/user-id/159346 <P>He expert,</P><P>My Project setup as TypeScript</P><P>with packge:&nbsp;</P><DIV><DIV><SPAN>&nbsp;</SPAN><SPAN>"@sap/cds"</SPAN><SPAN>: </SPAN><SPAN>"^8.1.1"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"@sap/cds-compiler"</SPAN><SPAN>: </SPAN><SPAN>"^5.1.0"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"@sap/cds-dk"</SPAN><SPAN>: </SPAN><SPAN>"^8.1.1"</SPAN><SPAN>,</SPAN></DIV><DIV><DIV><DIV><SPAN>&nbsp; </SPAN><SPAN>"@sap/xsenv"</SPAN><SPAN>: </SPAN><SPAN>"^5.2.0"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"@sap/xssec"</SPAN><SPAN>: </SPAN><SPAN>"^4.2.1"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>CDS Auth</SPAN></DIV><DIV><DIV><DIV><SPAN>"cds"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"requires"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"auth"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"kind"</SPAN><SPAN>: </SPAN><SPAN>"xsuaa"</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"db"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"kind"</SPAN><SPAN>: </SPAN><SPAN>"hana"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"model"</SPAN><SPAN>: </SPAN><SPAN>"srv"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"pool"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"pingCheck"</SPAN><SPAN>: </SPAN><SPAN>false</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"acquireTimeoutMillis"</SPAN><SPAN>: </SPAN><SPAN>5000</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"min"</SPAN><SPAN>: </SPAN><SPAN>100</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"max"</SPAN><SPAN>: </SPAN><SPAN>1000</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"fifo"</SPAN><SPAN>: </SPAN><SPAN>true</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; },</SPAN></DIV></DIV></DIV><DIV>&nbsp;</DIV><DIV><SPAN>-----------------------------</SPAN></DIV><DIV><SPAN><SPAN>I'm trying to get scopes assigned to the user via jwt token</SPAN></SPAN></DIV><DIV><SPAN><SPAN><SPAN>For role collections, it working well i can retrieved all role collections assigned to user via</SPAN></SPAN></SPAN><DIV><DIV><SPAN>xs.rolecollections</SPAN></DIV></DIV></DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TinhLeo_0-1724163326525.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/154794i37553002CBD2133C/image-size/medium?v=v2&amp;px=400" role="button" title="TinhLeo_0-1724163326525.png" alt="TinhLeo_0-1724163326525.png" /></span></DIV><DIV>&nbsp;</DIV></DIV></DIV><DIV>&nbsp;But for the scopes, it's not return scopes of apps just only open id and apps namelike that:</DIV><DIV>["openid","myapp!t203402"] as far as i know it should</DIV><DIV>["openid","myapp!t203402.CreateScope","myapp!t203402.DeleteScope"] right?</DIV><DIV>See JWT decoded</DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TinhLeo_1-1724163644946.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/154799i7BFFA20D0DF86E9B/image-size/medium?v=v2&amp;px=400" role="button" title="TinhLeo_1-1724163644946.png" alt="TinhLeo_1-1724163644946.png" /></span><P>&nbsp;</P></DIV><DIV>I've tried with <STRONG>req['authInfo'], req['user'].scope</STRONG> but no luck</DIV><DIV>Can anyone tell me how can i get scopes of logged user?</DIV></DIV> 2024-08-20T16:22:12.582000+02:00 https://community.sap.com/t5/technology-q-a/business-role-provisioning-from-microsoft-entra/qaq-p/13856883 Business role provisioning from Microsoft Entra 2024-09-06T14:22:30.439000+02:00 Vladimir_Kogan https://community.sap.com/t5/user/viewprofilepage/user-id/187632 <P>Dear Gurus.</P><P>We are going to use Microsoft Entra&nbsp;as&nbsp;&nbsp;Corporate Identity Provider for access to&nbsp; BTP Subaccount and application. There are 2 points that need clarification.</P><P>1) How exactly we can create a role provisioning from Microsoft Entra&nbsp;to specific BTP subaccount?</P><P>2) When one user has different roles in different subaccounts. How the provision will distinguish between them?</P><P>I mean the same use Subaccount admin in the development subaccount and viewer only on production one?</P><P>Thank you.</P><P>Regards</P><P>Vladimir</P> 2024-09-06T14:22:30.439000+02:00 https://community.sap.com/t5/technology-q-a/configuring-or-disabling-authentication-in-sap-build-apps-deployed-on-sap/qaq-p/13859647 Configuring or Disabling Authentication in SAP Build Apps Deployed on SAP BTP 2024-09-09T14:48:22.959000+02:00 Serhii4 https://community.sap.com/t5/user/viewprofilepage/user-id/1542927 <P>Hello SAP Community,</P><P>I am currently working with SAP Build Apps, which I have deployed on SAP BTP (Business Technology Platform). Whenever I access the application in SAP C4C, a login window pops up requesting a username and password.</P><P><BR />Is it possible to completely disable authentication for my SAP Build Apps application deployed on SAP BTP?<BR />I would prefer to have unrestricted access to the app without the need for user credentials, if that's feasible.</P><P>If complete disabling is not possible, can authentication be managed through Mashup parameters or some configuration settings?<BR />Ideally, I would like to preset the username and possibly bypass the login screen through backend configurations or scripts.</P><P>Are there any recommended practices for managing authentication in SAP Build Apps within the SAP BTP environment?<BR />If disabling authentication isn't an option, I am open to other suggestions that can simplify the login process for end-users.</P><P>Any guidance, examples, or documentation references would be greatly appreciated. I am relatively new to working with SAP Build Apps, so detailed steps or explanations would be very helpful!<BR /><BR /></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Serhii4_0-1725885996573.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/164061i202011C45A05DCA3/image-size/medium?v=v2&amp;px=400" role="button" title="Serhii4_0-1725885996573.png" alt="Serhii4_0-1725885996573.png" /></span></P><P>&nbsp;</P> 2024-09-09T14:48:22.959000+02:00 https://community.sap.com/t5/technology-q-a/customer-vendor-integration-conversion-process-authorizations-ownership/qaq-p/13861986 Customer/Vendor Integration Conversion Process Authorizations Ownership 2024-09-11T10:35:14.158000+02:00 rajashekar_chandrashekar https://community.sap.com/t5/user/viewprofilepage/user-id/237074 <P>Team,<BR />Please let me know which SAP Functional Team [ SAP HCM etc...] or SAP Technical Team should be ROLE OWNER [ Role assignment approver or&nbsp;Role Content Approver] for Customer/Vendor Integration Conversion Process Authorizations.&nbsp;Also, please share location of relevant documentation - if available.&nbsp;</P><P>Thanks</P><P>Raj</P> 2024-09-11T10:35:14.158000+02:00 https://community.sap.com/t5/technology-q-a/noclassdeffounderror-could-not-initialize-class-com-sap-cloud-security/qaq-p/13862445 NoClassDefFoundError: Could not initialize class com.sap.cloud.security.token.Token 2024-09-11T15:10:45.210000+02:00 gp5 https://community.sap.com/t5/user/viewprofilepage/user-id/1599935 <P>We have developed a Java-servlet based extension application for SAP SuccessFactors. Our deployment package includes both the Java application and the Approuter application, which customers deploy through the SAP BTP Cloud Foundry environment. We use Approuter for authentication, and once a request is successfully authenticated, it is forwarded to our Java application.</P><P>Although the application generally operates smoothly, one of our customers occasionally experiences the issue described below (which may occur once a month or even more frequently). This problem is resolved when the application is manually restarted.</P><P>Could you please assist us in identifying the root cause of this issue?</P><OL><LI>When an application URL (via approuter) is accessed, the application logs the following error in BTP:&nbsp;</LI></OL><P>&nbsp;</P><pre class="lia-code-sample language-java"><code>java.lang.NoClassDefFoundError: Could not initialize class com.sap.cloud.security.token.Token 2024-09-06T05:01:16.834+0000 [APP/PROC/WEB/0] STDOUT {"msg":"Error processing request","level":"ERROR","written_ts":"1725598876833000000","logger":"org.apache.coyote.http11.Http11Processor","exception_type":"java.lang.NoClassDefFoundError","written_at":"2024-09-06T05:01:16.833Z","thread":"http-nio-0.0.0.0-8080-exec-5","type":"log","exception_message":"Could not initialize class com.sap.cloud.security.token.Token","stacktrace":["java.lang.NoClassDefFoundError: Could not initialize class com.sap.cloud.security.token.Token","\tat com.sap.xs.security.UserInfoFactory.createXsuaaToken(UserInfoFactory.java:105)","\tat com.sap.xs.security.UserInfoFactory.checkAndSetXsuaaToken(UserInfoFactory.java:46)","\tat com.sap.xs.security.UserInfoValve.invoke(UserInfoValve.java:17)","\tat com.sap.xs.statistics.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:43)","\tat com.sap.xs.logging.catalina.RuntimeInfoValve.invoke(RuntimeInfoValve.java:42)","\tat org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:765)","\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)","\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)","\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)","\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)","\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1790)","\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)","\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)","\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)","\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)","\tat java.lang.Thread.run(Thread.java:838)","Caused by: java.lang.ExceptionInInitializerError: Exception java.util.ServiceConfigurationError: com.sap.cloud.security.token.TokenFactory: Provider com.sap.cloud.security.servlet.HybridTokenFactory not a subtype [in thread \"http-nio-0.0.0.0-8080-exec-1\"]","\tat java.util.ServiceLoader.fail(ServiceLoader.java:239)","\tat java.util.ServiceLoader.access$300(ServiceLoader.java:185)","\tat java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)","\tat java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)","\tat java.util.ServiceLoader$1.next(ServiceLoader.java:480)","\tat java.lang.Iterable.forEach(Iterable.java:74)","\tat com.sap.cloud.security.token.Token$1.&lt;init&gt;(Token.java:31)","\tat com.sap.cloud.security.token.Token.&lt;clinit&gt;(Token.java:29)","\tat com.sap.cloud.connectivity.apiext.cloud.destinationservice.DestinationServiceClient.getDestinationServiceAccessToken(DestinationServiceClient.java:77)","\tat com.sap.cloud.connectivity.apiext.cloud.destinationservice.DestinationServiceClient.getAuthorizationToken(DestinationServiceClient.java:121)","\tat com.sap.cloud.connectivity.apiext.cloud.destinationservice.DestinationServiceClient.findDestination(DestinationServiceClient.java:114)","\tat com.sap.cloud.connectivity.apiext.cloud.configuration.datasource.CloudDataSourceImpl.getDestinationConfiguration(CloudDataSourceImpl.java:41)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache$1.compute(AbstractDataSourceCache.java:88)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache$1.compute(AbstractDataSourceCache.java:72)","\tat com.sap.core.connectivity.apiext.impl.cache.util.Memoizer$1.call(Memoizer.java:109)","\tat com.sap.core.connectivity.apiext.impl.cache.util.Memoizer$1.call(Memoizer.java:105)","\tat com.sap.core.connectivity.apiext.impl.cache.CircuitBreakerFutureExecutor.execute(CircuitBreakerFutureExecutor.java:44)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache$DatasourceMemoizer$2.call(AbstractDataSourceCache.java:297)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache$DatasourceMemoizer$2.call(AbstractDataSourceCache.java:294)","\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)","\tat com.sap.core.connectivity.apiext.impl.cache.util.PeriodicFutureExecutor.runTask(PeriodicFutureExecutor.java:60)","\tat com.sap.core.connectivity.apiext.impl.cache.util.PeriodicFutureExecutor.execute(PeriodicFutureExecutor.java:49)","\tat com.sap.core.connectivity.apiext.impl.cache.util.Memoizer.compute(Memoizer.java:79)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache.computeFromMemoizer(AbstractDataSourceCache.java:160)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache.getDestinationConfiguration(AbstractDataSourceCache.java:230)","\tat com.sap.core.connectivity.apiext.impl.cache.AbstractDataSourceCache.getDestinationConfiguration(AbstractDataSourceCache.java:220)","\tat com.sap.core.connectivity.apiext.impl.configuration.reader.DataSourceConfigurationReader.readDestinationConfiguration(DataSourceConfigurationReader.java:22)","\tat com.sap.core.connectivity.apiext.impl.configuration.provider.AbstractConfigurationProvider$1.load(AbstractConfigurationProvider.java:58)","\tat com.sap.core.connectivity.apiext.impl.configuration.provider.AbstractConfigurationProvider$1.load(AbstractConfigurationProvider.java:54)","\tat com.sap.core.connectivity.apiext.impl.configuration.provider.AbstractConfigurationProvider.provide(AbstractConfigurationProvider.java:179)","\tat com.sap.core.connectivity.apiext.impl.configuration.provider.AbstractConfigurationProvider.provideDestinationConfiguration(AbstractConfigurationProvider.java:67)","\tat com.sap.core.connectivity.apiext.impl.configuration.provider.AbstractConfigurationProvider.getDestinationConfiguration(AbstractConfigurationProvider.java:54)","\tat com.sap.core.connectivity.apiext.impl.configuration.AbstractConnectivityConfiguration.getConfiguration(AbstractConnectivityConfiguration.java:60)","\tat com.sap.core.connectivity.apiext.impl.configuration.AbstractConnectivityConfiguration.getConfiguration(AbstractConnectivityConfiguration.java:46)"</code></pre><P>&nbsp;</P><P>&nbsp;</P><UL><LI>When the business users try to access the application URL(via approuter), they receive the following error, even though both the main application and approuter are in running state in SAP BTP.</LI></UL><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gp5_0-1726059267771.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/165146i29351EBB8A7F4416/image-size/medium?v=v2&amp;px=400" role="button" title="gp5_0-1726059267771.png" alt="gp5_0-1726059267771.png" /></span></P><P><STRONG><U>manifest.yml :</U></STRONG></P><P>&nbsp;</P><pre class="lia-code-sample language-yaml"><code>--- # Extension application - name: sf-extension memory: 900M timeout: 300 routes: - route: sfextension.cfapps.us10-001.hana.ondemand.com path: SfExtension.war buildpacks: - sap_java_buildpack env: TARGET_RUNTIME: tomcat USE_CONNECTIVITY_APIEXT: true APP_ROUTER_URL: https://websfextension.cfapps.us10-001.hana.ondemand.com SET_LOGGING_LEVEL: "{ROOT: DEBUG}" services: - xsuaa - destination - sap_hcmcloud_core_odata - connectivity # Application Router - name: approuter-sf-extension path: approuter buildpacks: - nodejs_buildpack memory: 124M routes: - route: websfextension.cfapps.us10-001.hana.ondemand.com services: - xsuaa env: destinations: &gt; [ {"name":"sap_hcmcloud_core_odata", "url":"https://sfextension.cfapps.us10-001.hana.ondemand.com", "forwardAuthToken": true} ]</code></pre><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-java"><code> mvn dependency:tree [INFO] +- commons-validator:commons-validator:jar:1.7:compile [INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile [INFO] | +- commons-logging:commons-logging:jar:1.2:compile [INFO] | \- commons-collections:commons-collections:jar:3.2.2:compile [INFO] +- com.google.code.gson:gson:jar:2.9.0:compile [INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile [INFO] +- javax.ws.rs:jsr311-api:jar:1.1.1:compile [INFO] +- com.sun.jersey:jersey-client:jar:1.19.4:compile [INFO] +- com.sun.jersey:jersey-core:jar:1.19.4:compile [INFO] +- com.sun.jersey.contribs:jersey-multipart:jar:1.19.4:compile [INFO] | \- org.jvnet.mimepull:mimepull:jar:1.9.3:compile [INFO] +- commons-codec:commons-codec:jar:1.13:compile [INFO] +- commons-io:commons-io:jar:2.11.0:compile [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.14.1:compile [INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.14.1:compile [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.14.1:compile [INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.14.1:compile [INFO] +- joda-time:joda-time:jar:2.10.3:compile [INFO] | \- javax.annotation:javax.annotation-api:jar:1.3.2:compile [INFO] +- com.github.librepdf:openpdf:jar:1.3.28:compile [INFO] +- com.sap.cloud.db.jdbc:ngdbc:jar:2.13.9:compile [INFO] +- com.sap.cloud.security:java-security:jar:2.13.4:compile [INFO] | +- com.sap.cloud.security:java-api:jar:2.13.4:compile [INFO] | +- com.sap.cloud.security:env:jar:2.13.4:compile [INFO] | | +- com.sap.cloud.environment.servicebinding:java-sap-vcap-services:jar:0.10.1:compile [INFO] | | | \- com.sap.cloud.environment.servicebinding.api:java-core-api:jar:0.10.1:compile [INFO] | | +- com.sap.cloud.environment.servicebinding:java-sap-service-operator:jar:0.10.1:compile [INFO] | | +- com.sap.cloud.environment.servicebinding.api:java-consumption-api:jar:0.10.1:compile [INFO] | | \- com.sap.cloud.environment.servicebinding.api:java-access-api:jar:0.10.1:compile [INFO] | \- com.sap.cloud.security.xsuaa:token-client:jar:2.13.4:compile [INFO] | +- com.sap.cloud.security.xsuaa:api:jar:2.13.4:compile [INFO] | \- com.github.ben-manes.caffeine:caffeine:jar:2.9.3:compile [INFO] | +- org.checkerframework:checker-qual:jar:3.19.0:compile [INFO] | \- com.google.errorprone:error_prone_annotations:jar:2.10.0:compile [INFO] +- javax.xml.bind:jaxb-api:jar:2.3.1:compile [INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile [INFO] +- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.3.2:compile [INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test [INFO] | +- org.junit.platform:junit-platform-engine:jar:1.8.2:test [INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.8.2:test [INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test [INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.2:test [INFO] +- org.mockito:mockito-core:jar:4.6.1:test [INFO] | +- net.bytebuddy:byte-buddy:jar:1.12.10:test [INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.12.10:test [INFO] | \- org.objenesis:objenesis:jar:3.2:test [INFO] +- org.mockito:mockito-inline:jar:4.6.1:test [INFO] +- org.mockito:mockito-junit-jupiter:jar:4.6.1:test [INFO] +- com.h2database:h2:jar:2.1.214:test [INFO] +- javax.websocket:javax.websocket-api:jar:1.1:provided [INFO] +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:provided [INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided [INFO] +- org.slf4j:slf4j-api:jar:1.7.28:provided [INFO] +- com.sap.xs:java-js-client:jar:1.7.2:provided [INFO] | +- org.slf4j:slf4j-simple:jar:1.7.36:provided [INFO] | \- org.apache.commons:commons-lang3:jar:3.12.0:provided [INFO] \- com.sap.cloud:neo-java-web-api:jar:3.154.5:provided [INFO] +- org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:1.0.0:provided [INFO] +- javax.el:javax.el-api:jar:3.0.0:provided [INFO] +- org.apache.chemistry.opencmis:chemistry-opencmis-client-api:jar:1.0.0:provided [INFO] +- javax.mail:javax.mail-api:jar:1.5.5:provided [INFO] \- org.glassfish:javax.annotation:jar:3.1-b41:provided [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS </code></pre><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-09-11T15:10:45.210000+02:00 https://community.sap.com/t5/technology-q-a/sap-malware-scanning-service-in-cap/qaq-p/13865661 SAP malware scanning service in CAP 2024-09-14T06:21:19.024000+02:00 adarsh-kmr https://community.sap.com/t5/user/viewprofilepage/user-id/893604 <P>Hi experts,</P><P>We've a requirement where we need to integrate SAP Malware Scanning service with our CAP/UI5 application. If you have any insights or suggestions, we would greatly appreciate your assistance.&nbsp;</P><P>Thank you for your attention to this issue. We look forward to your guidance.</P><P>Best regards,</P><P>Adarsh&nbsp;</P> 2024-09-14T06:21:19.024000+02:00 https://community.sap.com/t5/technology-q-a/how-to-use-xsuaa-in-fastapi-python-app/qaq-p/13866386 How to use XSUAA in FastAPI Python app 2024-09-16T07:21:48.484000+02:00 Mohan_Sharma https://community.sap.com/t5/user/viewprofilepage/user-id/638274 <P>Hi there,&nbsp;</P><P>I have a fastapi app with 2 routes, one for rendering an html page and one for serving a request. I am using Jinja2 for templating.</P><P>Example of one of the route:</P><pre class="lia-code-sample language-java"><code><a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1699569">@router</a>.get("/", response_class=HTMLResponse) async def read_root(request: Request): return templates.TemplateResponse("index.html", {"request": request})</code></pre><P>My manifest.yaml for deploying it to cloud foundry:</P><pre class="lia-code-sample language-yaml"><code>--- applications: - name: fastapi-app disk_quota: 2048M memory: 256M path: ./ routes: - route: fastapi-app.cfapps.eu10.hana.ondemand.com buildpacks: - python_buildpack command: uvicorn com.crack.snap.make.app:app --host 0.0.0.0 --port $PORT services: - app-xsuaa - app-logging-service logging: level: error env: PYTHONUNBUFFERED: true xsuaa_connectivity_instance_name: "app-xsuaa" xsuaa_destination_instance_name: "app-xsuaa"</code></pre><P>How do I protect these fastapi routes directly using XSUAA, without having to create one more webapp then use app-router and then forwarding the request to fastapi app?</P><P>Also I&nbsp;<SPAN>want the fastapi to use the sub-account's default authentication which we do by using redirect-url of xs-security.json</SPAN></P><pre class="lia-code-sample language-json"><code>{ "xsappname": "fastapi-app", "tenant-mode": "dedicated", "scopes": [{ "name": "$XSAPPNAME.fastapi_scope" }], "role-templates": [{ "name": "FastAPIRoleTemplate", "default-role-name": "FastAPIRole", "description": "Role template for app users", "scope-references": ["$XSAPPNAME.fastapi_scope"] } ], "oauth2-configuration": { "redirect-uris": [ "https://*.cfapps.eu10.hana.ondemand.com/**" ] } }</code></pre><P>Any help on achieving this will be really appreciated, we can also have a blog post on the same topic</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP%25252C+Cloud+Foundry+runtime+and+environment/pd-p/73555000100800000287" class="lia-product-mention" data-product="443-1">SAP BTP, Cloud Foundry runtime and environment</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/Python/pd-p/f220d74d-56e2-487e-8e6c-a8cb3def2378" class="lia-product-mention" data-product="126-1">Python</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/SAP+BTP+Security/pd-p/842ea649-eeef-464c-b80c-a64b03e40158" class="lia-product-mention" data-product="99-1">SAP BTP Security</a>&nbsp;</P> 2024-09-16T07:21:48.484000+02:00 https://community.sap.com/t5/technology-q-a/troubleshooting-431-status-code-when-creating-a-samlassertion-destination/qaq-p/13866985 Troubleshooting 431 Status Code When Creating a SAMLAssertion Destination in SAP BTP 2024-09-16T15:23:25.616000+02:00 Shubham_Savani https://community.sap.com/t5/user/viewprofilepage/user-id/1727519 <H3 id="toc-hId-1178067167"><STRONG>Issue Overview:</STRONG></H3><P>I’m facing an issue while setting up a<SPAN>&nbsp;</SPAN><STRONG>SAMLAssertion</STRONG><SPAN>&nbsp;</SPAN>destination in SAP BTP.&nbsp;I’m encountering a<SPAN>&nbsp;</SPAN><STRONG>431 status code</STRONG><SPAN>&nbsp;</SPAN>when checking the connection for the destination. The<SPAN>&nbsp;</SPAN><STRONG>431 status code</STRONG><SPAN>&nbsp;</SPAN>stands for<SPAN>&nbsp;</SPAN><STRONG>"Request Header Fields Too Large"</STRONG>. This error indicates that the request headers being sent to the server are exceeding its size limits. In my case, this is happening while using<SPAN>&nbsp;</SPAN><STRONG>SAMLAssertion</STRONG><SPAN>&nbsp;</SPAN>as the authentication method for an SAP destination.</P><P>From what I understand, SAML tokens can sometimes become quite large, and this can cause issues when they are passed in the request headers. However, I’m not sure how to proceed in resolving the issue.</P><H3 id="toc-hId-981553662"><STRONG>Details of the Issue:</STRONG></H3><UL><LI><STRONG>Setup:</STRONG><SPAN>&nbsp;</SPAN>SAMLAssertion-based authentication for an SAP destination.</LI><LI><STRONG>Error:</STRONG><SPAN>&nbsp;</SPAN>When I attempt to check the connection, I receive a<SPAN>&nbsp;</SPAN><STRONG>431 status code</STRONG>.</LI><LI><STRONG>Potential Cause:</STRONG><SPAN>&nbsp;</SPAN>The error might be related to the size of the SAML token or other header fields being sent as part of the request. However, I haven’t been able to identify the exact cause or find a solution.</LI></UL><H3 id="toc-hId-785040157"><STRONG>Seeking Suggestions:</STRONG></H3><P>I’ve done some research, but I haven’t come across a definitive solution yet. I’m reaching out to the community to see if anyone has encountered a similar problem and managed to resolve it.</P><UL><LI><STRONG>Has anyone faced this issue with SAMLAssertion destinations?</STRONG></LI><LI><STRONG>What are some potential ways to reduce the header size in such cases?</STRONG></LI><LI><STRONG>Could the issue be related to proxy or gateway limits? If so, what adjustments helped?</STRONG></LI></UL><P>Any advice or suggestions would be greatly appreciated!</P><P>&nbsp;</P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Destination" style="width: 997px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/166916i3D19D6E9A61A58A3/image-size/large?v=v2&amp;px=999" role="button" title="image.png" alt="Destination" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">Destination</span></span></P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Fiori Genrator" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/166917i889A21F6EBA09D4A/image-size/large?v=v2&amp;px=999" role="button" title="image.png" alt="Fiori Genrator" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">Fiori Genrator</span></span></P><P>&nbsp;</P><H3 id="toc-hId-588526652"><STRONG>Conclusion:</STRONG></H3><P>Dealing with a<SPAN>&nbsp;</SPAN><STRONG>431 status code</STRONG><SPAN>&nbsp;</SPAN>while using<SPAN>&nbsp;</SPAN><STRONG>SAMLAssertion</STRONG><SPAN>&nbsp;</SPAN>in SAP is proving to be quite a challenge. I’d love to hear from anyone who has tackled this issue or has insights into potential solutions.</P> 2024-09-16T15:23:25.616000+02:00 https://community.sap.com/t5/technology-q-a/import-into-node-dev-node-failed-error-during-client-creation-not-found/qaq-p/13870194 Import into node dev_node failed. - Error during client creation: Not Found 2024-09-19T03:58:16.842000+02:00 ravindra1234 https://community.sap.com/t5/user/viewprofilepage/user-id/1727862 <P>Dear All,</P><P>I have a problem importing a file into Dev transport node in SAP BTP .</P><P>Getting the following error&nbsp;Import into node dev_node failed. - Error during client creation: Not Found.</P><P>Thanks,</P><P>Ravi</P><P>&nbsp;</P><P>&nbsp;</P> 2024-09-19T03:58:16.842000+02:00 https://community.sap.com/t5/technology-q-a/how-to-securing-odata-services-or-api-in-sap-btp-capm-in-node-js/qaq-p/13870363 HOW to securing odata services or api in sap btp CAPM in node js 2024-09-19T07:04:52.268000+02:00 Dipnesh https://community.sap.com/t5/user/viewprofilepage/user-id/1557944 <P>Hello SAP Community,</P><P>I’m currently working on a client project with my team using the SAP BTP Cloud Application Programming Model (CAP) in Node.js, with CDS for our backend services. We have successfully created OData services and APIs, but we’re facing challenges in securing them effectively.</P><P>In other technology stacks like .NET and MERN, the standard approach we follow for securing APIs typically involves:</P><OL><LI>Verifying the user based on their login credentials against the data stored in the database.</LI><LI>Generating a token upon successful validation.</LI><LI>Using authentication middleware to secure the APIs.</LI></OL><P>However, we are unsure how to apply this approach in the context of SAP BTP CAP. The usual methods of user authentication, token generation, and middleware usage seem different or not directly applicable.</P><P>Could you please guide us on the best practices for securing OData services or APIs in CAP? Any recommendations, frameworks, or configurations specific to SAP BTP CAP would be greatly appreciated.</P> 2024-09-19T07:04:52.268000+02:00 https://community.sap.com/t5/technology-q-a/sap-btp-identity-services-logon-against-sap-ecc-or-s4-backend/qaq-p/13878004 SAP BTP Identity Services logon against SAP ECC or S4 backend? 2024-09-25T22:59:27.964000+02:00 ELion https://community.sap.com/t5/user/viewprofilepage/user-id/171226 <P>Howdy!</P><P>So I have a requirement to setup an external facing WorkZone (Cloud Fiori Launchpad) which houses a few Fiori apps that connect to our SAP ECC EHP8 system (soon to be S4). &nbsp;My requirement is that when a user access our WorkZone the logon page should authenticate against our SAP ECC system instead of the default BTP Open ID provider.</P><P>I've scoured the web and believe to have come across a few posts that seem to alude to a solution but even then I'm not sure. &nbsp;For example, I've read some blogs/documents about activating the SAML 2.0 service on SAP and hooking that up to BTP identity services. &nbsp;I've walked through these steps but it won't work; even then, it just doesn't feel like the right approach. &nbsp;I've considered user propagation as a potential solution but haven't tried to implement it as I'm not even sure I'm headed in the right direction.</P><P>If anyone has any experience here I'd greatly appreciate some validation or success stories. &nbsp;Much appreciated!</P> 2024-09-25T22:59:27.964000+02:00 https://community.sap.com/t5/technology-q-a/sap-build-app-btp-connection-to-quot-xxx-quot-established-response-returned/qaq-p/13880468 SAP Build App -BTP Connection to "XXX" established. Response returned: "401: Unauthorized" 2024-09-27T14:32:56.085000+02:00 LeandroRibeiro https://community.sap.com/t5/user/viewprofilepage/user-id/42834 <P>I did this very nice video " Access Demo SAP APIs for SAP Build" (<A href="https://www.youtube.com/watch?v=11TUQgQi-9k" target="_blank" rel="noopener nofollow noreferrer">https://www.youtube.com/watch?v=11TUQgQi-9k</A>) to create an app using a Business Partner sandbox API and worked fine.&nbsp; I could see the data when lauching the web app. Really nice indeed!</P><P>&nbsp;</P><P>But one day after I could no longer see the data when oppening web preview.</P><P>In the Build App, in the data section, I can see my integration (BTP destination),&nbsp;install it,&nbsp; enable entities and when executing "browse real data" it works perfectly.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeandroRibeiro_3-1727439268858.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/172424iE72D1539707025DF/image-size/medium?v=v2&amp;px=400" role="button" title="LeandroRibeiro_3-1727439268858.png" alt="LeandroRibeiro_3-1727439268858.png" /></span></P><P>But when I make a binding with a data variable, and launch the web app, the data no longer appears.</P><P>One point is that, within the BTP, when I try to test the destination (check connection), the system returns a message of :&nbsp; Connection to "demoApp_BP" established. Response returned: "401: Unauthorized"</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeandroRibeiro_1-1727439116901.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/172416i5693BFF3C13A6500/image-size/medium?v=v2&amp;px=400" role="button" title="LeandroRibeiro_1-1727439116901.png" alt="LeandroRibeiro_1-1727439116901.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeandroRibeiro_2-1727439143435.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/172418i23FC625BD540B491/image-size/medium?v=v2&amp;px=400" role="button" title="LeandroRibeiro_2-1727439143435.png" alt="LeandroRibeiro_2-1727439143435.png" /></span></P><P>I have already cleared the browser cache, reinstalled the Build App, deleted and created a new subaccount in the BTP, but none of this worked.&nbsp;</P><P>OBS:&nbsp; I put all the role colections on my btp user (&nbsp;<A class="" href="https://account.hanatrial.ondemand.com/trial/#" target="_blank" rel="noopener nofollow noreferrer">Custom IAS tenant</A>&nbsp;and&nbsp;<A class="" href="https://account.hanatrial.ondemand.com/trial/#" target="_blank" rel="noopener nofollow noreferrer">Default identity provider</A>&nbsp; users) and i m loggin in SAP Business Accelerator Hub</P><P>Could someone please help me?</P><P>I really can't see what is different from a day ago when the data was returned ok.</P><P>Thanks.</P><P>&nbsp;</P><P>Here some of the app</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeandroRibeiro_5-1727439514892.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/172433i2110617B8167C8C1/image-size/medium?v=v2&amp;px=400" role="button" title="LeandroRibeiro_5-1727439514892.png" alt="LeandroRibeiro_5-1727439514892.png" /></span></P><P>when oppening web preview = no data</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeandroRibeiro_6-1727439571492.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/172434iA938FED3403C7980/image-size/medium?v=v2&amp;px=400" role="button" title="LeandroRibeiro_6-1727439571492.png" alt="LeandroRibeiro_6-1727439571492.png" /></span></P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-09-27T14:32:56.085000+02:00 https://community.sap.com/t5/technology-q-a/application-router-not-redirecting-correctly-to-xsuaa-authentication/qaq-p/13882573 Application Router Not Redirecting Correctly to XSUAA Authentication Service in CAP Project 2024-09-30T10:06:31.446000+02:00 Dipnesh https://community.sap.com/t5/user/viewprofilepage/user-id/1557944 <P>Hello community,</P><P>i have followed&nbsp;&nbsp;<A href="https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html" target="_blank" rel="noopener noreferrer">Add User Authentication to Your Application (SAP HANA Cloud) | SAP Tutorials</A>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this tutorial to add user authentication in my application but facing error.</P><P>i have created a entity&nbsp; &nbsp;<SPAN>Playing_11</SPAN> &nbsp;then used&nbsp; &nbsp;</P><DIV><DIV><SPAN>&nbsp;</SPAN><SPAN>@requires</SPAN><SPAN>:</SPAN> <SPAN>'Admin'</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; </SPAN><SPAN>entity</SPAN> <SPAN>Playing_11</SPAN> <SPAN>as</SPAN> <SPAN>projection</SPAN> <SPAN>on</SPAN> <SPAN>dipnesh</SPAN><SPAN>.</SPAN><SPAN>Playing_11</SPAN><SPAN>;&nbsp; &nbsp; in my service after that&nbsp; &nbsp;i have followed&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cds compile srv/ --to xsuaa <SPAN class="">&gt;</SPAN> xs-security.json"&nbsp; command&nbsp; from tutorial and it has updated my xs-thsecurity.json&nbsp; file .</SPAN></DIV><DIV><DIV><SPAN>{</SPAN></DIV><DIV><SPAN>"xsappname"</SPAN><SPAN>: </SPAN><SPAN>"fullstackdeployment"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>"tenant-mode"</SPAN><SPAN>: </SPAN><SPAN>"dedicated"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; </SPAN><SPAN>"scopes"</SPAN><SPAN>: [</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"name"</SPAN><SPAN>: </SPAN><SPAN>"$XSAPPNAME.Admin"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"description"</SPAN><SPAN>: </SPAN><SPAN>"Admin"</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; }</SPAN></DIV><DIV><SPAN>&nbsp; ],</SPAN></DIV><DIV><SPAN>&nbsp; </SPAN><SPAN>"attributes"</SPAN><SPAN>: [],</SPAN></DIV><DIV><SPAN>&nbsp; </SPAN><SPAN>"role-templates"</SPAN><SPAN>: [</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"name"</SPAN><SPAN>: </SPAN><SPAN>"Admin"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"description"</SPAN><SPAN>: </SPAN><SPAN>"generated"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"scope-references"</SPAN><SPAN>: [</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"$XSAPPNAME.Admin"</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; ],</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; </SPAN><SPAN>"attribute-references"</SPAN><SPAN>: []</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; }</SPAN></DIV><DIV><SPAN>&nbsp; ],</SPAN></DIV><DIV><SPAN>&nbsp; </SPAN><SPAN>"oauth2-configuration"</SPAN><SPAN>: {</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; </SPAN><SPAN>"credential-types"</SPAN><SPAN>: [</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"binding-secret"</SPAN><SPAN>,</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"x509"</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; ],</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; </SPAN><SPAN>"redirect-uris"</SPAN><SPAN>: [</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN>"<A href="https://api.cf.us10-001.hana.ondemand.com" target="_blank" rel="noopener nofollow noreferrer">https://api.cf.us10-001.hana.ondemand.com</A>"</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; ]</SPAN></DIV><DIV><SPAN>}</SPAN></DIV><DIV><SPAN><SPAN>}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</SPAN></SPAN><DIV><DIV><SPAN>and create the XSUAA services and its key instance with the&nbsp; xs-security.json</SPAN></DIV><DIV>then binded it with my application .&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;after that created and granted roles&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally by using command "<SPAN><SPAN><SPAN><SPAN>cds watch --profile hybrid "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i got&nbsp; this error&nbsp;</SPAN></SPAN></SPAN></SPAN><PRE>{ "error": { "stack": "Error\n at reject (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/libx/_runtime/common/generic/auth/utils.js:17:16)\n at ApplicationService.handler (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/libx/_runtime/common/generic/auth/requires.js:37:3)\n at ApplicationService.handle (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/lib/srv/srv-dispatch.js:52:53)\n at ApplicationService.handle (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/libx/_runtime/common/Service.js:84:28)\n at cds.ApplicationService.handle (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js:396:14)\n at ApplicationService.dispatch (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/lib/srv/srv-dispatch.js:35:15)\n at /home/user/projects/fullstackdeployment/node_modules/@sap/cds/lib/srv/srv-dispatch.js:15:48\n at ApplicationService.run (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/lib/srv/srv-api.js:72:46)\n at ApplicationService.dispatch (/home/user/projects/fullstackdeployment/node_modules/@sap/cds/lib/srv/srv-dispatch.js:15:34)\n at /home/user/projects/fullstackdeployment/node_modules/@sap/cds/libx/odata/middleware/read.js:227:24", "code": 401, "numericSeverity": 4 } }</PRE><SPAN><SPAN><SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and after using command&nbsp; &nbsp; "cds bind --exec -- npm start --prefix app/router"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i got this error in console in browser.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</SPAN></SPAN></SPAN></DIV><DIV><SPAN><SPAN><SPAN>GET <A href="https://2f540306trial.authentication.us10.hana.ondemand.com/oauth/authorize?response_type=code&amp;client_id=sb-fullstackdeployment!t326190&amp;redirect_uri=https%3A%2F%2Fport5000-workspaces-ws-gjm7l.us10.trial.applicationstudio.cloud.sap%2Flogin%2Fcallback" target="_blank" rel="noopener nofollow noreferrer">https://2f540306trial.authentication.us10.hana.ondemand.com/oauth/authorize?response_type=code&amp;client_id=sb-fullstackdeployment!t326190&amp;redirect_uri=https%3A%2F%2Fport5000-workspaces-ws-gjm7l.us10.trial.applicationstudio.cloud.sap%2Flogin%2Fcallback</A> 500 (Internal Server Error)Understand this error<BR />favicon.ico:1<BR />GET <A href="https://2f540306trial.authentication.us10.hana.ondemand.com/favicon.ico" target="_blank" rel="noopener nofollow noreferrer">https://2f540306trial.authentication.us10.hana.ondemand.com/favicon.ico</A> 404 (Not Found)&nbsp; &nbsp;</SPAN></SPAN></SPAN></DIV><DIV>&nbsp;</DIV><DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_0-1727682467101.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173082iF64BDFD6D3E5940E/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_0-1727682467101.png" alt="Dipnesh_0-1727682467101.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_1-1727682565327.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173083i25D6ECC9766E864E/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_1-1727682565327.png" alt="Dipnesh_1-1727682565327.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_4-1727682876128.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173089i2633BDAD3F579509/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_4-1727682876128.png" alt="Dipnesh_4-1727682876128.png" /></span><P>&nbsp;</P></DIV><DIV>&nbsp;<span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_3-1727682723989.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173086i4A4437E505FB5D5C/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_3-1727682723989.png" alt="Dipnesh_3-1727682723989.png" /></span><P>&nbsp;</P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_5-1727683059406.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173092i93CF7F37EA3541F9/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_5-1727683059406.png" alt="Dipnesh_5-1727683059406.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_6-1727683167577.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173093iBD8D58549CF6C246/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_6-1727683167577.png" alt="Dipnesh_6-1727683167577.png" /></span><P>#xsuaa</P></DIV></DIV></DIV></DIV></DIV> 2024-09-30T10:06:31.446000+02:00 https://community.sap.com/t5/technology-q-a/can-you-connect-eclipse-oxygen-to-sap-btp-server-currently/qaq-p/13883374 Can you connect eclipse oxygen to sap btp server currently ? 2024-09-30T19:54:45.914000+02:00 Gryphon3815 https://community.sap.com/t5/user/viewprofilepage/user-id/1737276 <P>is this a supported option currently for custom adapter development on sap BTP.&nbsp;</P> 2024-09-30T19:54:45.914000+02:00 https://community.sap.com/t5/technology-q-a/xsuaa-configuration/qaq-p/13883845 XSUAA Configuration 2024-10-01T07:39:17.847000+02:00 Dipnesh https://community.sap.com/t5/user/viewprofilepage/user-id/1557944 <P>Hello community.</P><P>i have followed&nbsp; this tutorial to add authentication in my cap project using xsuaa.</P><P><A href="https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html" target="_blank" rel="noopener noreferrer">Add User Authentication to Your Application (SAP HANA Cloud) | SAP Tutorials</A>.</P><P>in step 5 of this tutorial i got this particular type of error after using command "cds watch --profile hybrid".</P><PRE>{ "error": { "stack": "Error\n at reject (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/common/generic/auth/utils.js:17:16)\n at ApplicationService.handler (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/common/generic/auth/requires.js:37:3)\n at ApplicationService.handle (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/lib/srv/srv-dispatch.js:52:53)\n at ApplicationService.handle (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/common/Service.js:84:28)\n at run (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js:382:12)\n at onlyActives (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js:800:27)\n at cds.ApplicationService.handle (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/libx/_runtime/fiori/lean-draft.js:423:26)\n at ApplicationService.dispatch (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/lib/srv/srv-dispatch.js:35:15)\n at /home/user/projects/MyHANAApp5/node_modules/@sap/cds/lib/srv/srv-dispatch.js:15:48\n at ApplicationService.run (/home/user/projects/MyHANAApp5/node_modules/@sap/cds/lib/srv/srv-api.js:72:46)", "code": 401, "numericSeverity": 4 } }</PRE><P>while in this tutorial error is different&nbsp;</P><P>&nbsp;</P><OL><LI><P>If you open the CAP service test page (cds watch --profile hybrid<SPAN>&nbsp;</SPAN>if you need to restart it) and try to access one of the service endpoints or metadata, you should receive an Unauthorized error.</P><DIV class=""><DIV class="">&nbsp;</DIV><DIV class="">&nbsp;</DIV><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_1-1727760686139.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/173599iD34E9AC630C9E946/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_1-1727760686139.png" alt="Dipnesh_1-1727760686139.png" /></span><P>&nbsp;</P></DIV><P>This means your security setup is working. Accessing the CAP service directly will always produce an error now as there is no authentication token present. We need to run via the Application Router to generate and forward the authentication token.</P></LI></OL><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>please help and guide me in understanding the difference between the two errors for same problem .</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-10-01T07:39:17.847000+02:00 https://community.sap.com/t5/technology-q-a/set-up-trust-between-sap-cloud-identity-services-and-sap-btp-cloud-foundry/qaq-p/13886475 Set Up Trust Between SAP Cloud Identity Services and SAP BTP, Cloud Foundry environment 2024-10-03T07:18:47.524000+02:00 Dipnesh https://community.sap.com/t5/user/viewprofilepage/user-id/1557944 <P>Hello community ,</P><P>&nbsp;</P><P>i have followed this tutorial to set up trust between sap cloud identity services and sap btp .cloud foundry environment&nbsp; in my trial account.</P><P><A href="https://developers.sap.com/tutorials/abap-custom-ui-trust-cf..html" target="_blank" rel="noopener noreferrer">Set Up Trust Between SAP Cloud Identity Services and SAP BTP, Cloud Foundry environment | SAP Tutorials</A></P><P>&nbsp;</P><P>in step 5 of this tutorial&nbsp; ,under&nbsp;<SPAN>&nbsp;"&nbsp;</SPAN><STRONG>Primary Attribute</STRONG><SPAN>&nbsp;use&nbsp;</SPAN><STRONG>Identity Directory</STRONG><SPAN>&nbsp;as&nbsp;</SPAN><STRONG>Source</STRONG><SPAN>, choose&nbsp;</SPAN><STRONG>Login Name</STRONG><SPAN>&nbsp;as&nbsp;</SPAN><STRONG>Value</STRONG><SPAN>&nbsp;and save your changes".</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_1-1727932176957.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/174539i47C6EAFA31DF2BB4/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_1-1727932176957.png" alt="Dipnesh_1-1727932176957.png" /></span></P><P>only "User id " option was available inside&nbsp; Value option .</P><P>while in tutorial there are multiple options inside Value option .</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dipnesh_2-1727932452692.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/174540i073EA67FA3608227/image-size/large?v=v2&amp;px=999" role="button" title="Dipnesh_2-1727932452692.png" alt="Dipnesh_2-1727932452692.png" /></span></P><P>&nbsp;</P><DIV class="">&nbsp;</DIV><P>please help me in understanding this and why only single option is present in my case&nbsp;</P><P>&nbsp;</P> 2024-10-03T07:18:47.524000+02:00