xsuaa
page is :Invalid redirect <url> did not match one of the registered values
xs-app.json
file.xs-security.json
file is specific to the xsuaa instance !xs-security.json
file{
"xsappname": "node-hello-world",
"scopes": [
{
"name": "$XSAPPNAME.Display",
"description": "display"
},
{
"name": "$XSAPPNAME.Edit",
"description": "edit"
},
{
"name": "$XSAPPNAME.Delete",
"description": "delete"
}
],
"attributes": [
{
"name": "Country",
"description": "Country",
"valueType": "string"
},
{
"name": "CostCenter",
"description": "CostCenter",
"valueType": "int"
}
],
"role-templates": [
{
"name": "Viewer",
"description": "View all books",
"scope-references": [
"$XSAPPNAME.Display"
],
"attribute-references": ["Country"]
},
{
"name": "Editor",
"description": "Edit, delete books",
"scope-references": [
"$XSAPPNAME.Edit",
"$XSAPPNAME.Delete"
],
"attribute-references": [
"Country",
"CostCenter"
]
}
]
}
xsuaa
plans availablecf marketplace -s xsuaa
application
plancf create-service xsuaa application myappxsuaa -c xs-security.json
xs-security.json
file{
"xsappname": "node-hello-world",
"scopes": [
{
"name": "$XSAPPNAME.Display",
"description": "display"
},
{
"name": "$XSAPPNAME.Edit",
"description": "edit"
},
{
"name": "$XSAPPNAME.Delete",
"description": "delete"
}
],
"attributes": [
{
"name": "Country",
"description": "Country",
"valueType": "string"
},
{
"name": "CostCenter",
"description": "CostCenter",
"valueType": "int"
}
],
"role-templates": [
{
"name": "Viewer",
"description": "View all books",
"scope-references": [
"$XSAPPNAME.Display"
],
"attribute-references": ["Country"]
},
{
"name": "Editor",
"description": "Edit, delete books",
"scope-references": [
"$XSAPPNAME.Edit",
"$XSAPPNAME.Delete"
],
"attribute-references": [
"Country",
"CostCenter"
]
}
],
"oauth2-configuration": {
"redirect-uris": [
"https://www.myappurl.com/login/callback",
"http://localhost:5000/login/callback"
]
}
}
cf update-service myappxsuaa -p application -c xs-security.json
xsuaa
and approuter
use.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
13 | |
11 | |
10 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 |