Hi all,
found the solution:
After creating the service-instances on the SCP and deploying the app, I just created an xs-security.json which looked like this:
{
"xsappname": "NameOfMyApp",
"tenant-mode": "shared",
"scopes" : [
{
"name" : "$XSAPPNAME.User",
"description" : "User"
},
{
"name" : "$XSAPPNAME.Administrator",
"description" : "Administrator"
}
],
"role-templates": [
{
"name" : "User",
"description" : "User",
"scope-references" : [
"$XSAPPNAME.User",
"uaa.user"
]
},
{
"name" : "Administrator",
"description" : "Administrator",
"scope-references" : [
"$XSAPPNAME.Administrator",
"uaa.user"
]
}
],
"oauth2-configuration": {
"allowedproviders": ["accounts.sap.com"]
}
}
Consider that I only have the two roles Admin and User in my app.
After that I updated my xsuaa instance with CF CLI:
cf update-service <SERVICE_INSTANCE> -c xs-security.json
Now I am able to login directly with using accounts.sap.com as IdP.
After re-deployment of the app the configuration still remains the same – but I think, after adding/delete/updating a role it will also overwrite the xsuaa-instance settings and I have to update the service again with my xs-security.json file – but that is only what I assume, still have to test it.
Best regards,
Ömer
Push, anyone who can help? I somehow need to adjust the XS-security.json file, but don’t know how to do that in Mendix.