on 03-23-2022 3:22 PM
I am working on a CF based UI5 application, where we have two applications Admin and User application and a single Backend Java Application.
How Can I use Admin app XSUAA service instance into User App MTA.yaml (Existing XSUAA Service Instance) file?
mta.yaml:
<code>_schema-version: "3.2"
ID: user
description: A Fiori application.
version: 0.0.5
modules:
- name: user-dest-content
type: com.sap.application.content
requires:
- name: user-dest-srv
parameters:
content-target: true
- name: user-repo-host
parameters:
service-key:
name: user-repo-host-key
- name: user-uaa
parameters:
service-key:
name: user-uaa-key
parameters:
content:
instance:
destinations:
- Name: user_repo_host
ServiceInstanceName: user-html5-srv
ServiceKeyName: user-repo-host-key
sap.cloud.service: user
- Authentication: OAuth2UserTokenExchange
Name: user_uaa
ServiceInstanceName: user-xsuaa-srv
ServiceKeyName: user-uaa-key
sap.cloud.service: user
existing_destinations_policy: ignore
build-parameters:
no-source: true
- name: userc-app-content
type: com.sap.application.content
path: .
requires:
- name: user-repo-host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- user.zip
name: user
target-path: resources/
- name: user
type: html5
path: .
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: user-dest-srv
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.0
service: destination
service-name: user-dest-srv
service-plan: lite
- name: user-uaa
type: org.cloudfoundry.managed-service
parameters:
path: ./xs-security.json
service: xsuaa
service-name: user-xsuaa-srv
service-plan: application
- name: user-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-name: user-html5-srv
service-plan: app-host
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true
you can just use the same service in all 3 applications (java + 2 UI apps)
Two ways.
1. Club the User + Admin into a single MTA
2. Use the same resource in both MTA (same xsuaa instance, the name would be same for xsuaa service in both mta)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.