3.3 Resource Server Creation

Resource Server Name: OFSLL_OAUTH_SERVER

Identity Domain: OFSLL_OAUTH_DOMAIN

Request JSON payload

{
"name":"OFSLL_OAUTH_SERVER",
"description":"OFSLL_OAUTH_SERVER",
"scopes":[{
"scopeName":"OFSLL_REST_ALL",
"description":"ALLOW_ALL"
},
{
"scopeName":"OFSLL_REST_NONE",
"description":"ALLOW_NONE"
}],
"tokenAttributes":
[{"attrName":"sessionId",
"attrValue":"$session.id",
"attrType":"DYNAMIC"
},
{
"attrName":"resSrvAttr",
"attrValue":"RESOURCECONST",
"attrType":"STATIC"
}],
"idDomain":"OFSLL_OAUTH_DOMAIN",
"audienceClaim":{"subjects":["OFSLL_B2B_OAUTH_CLIENT"]}
}

Response JSON payload

Sucessfully created entity - OAuthResourceServer, detail -
IdentityDomain="OFSLL_OAUTH_DOMAIN,
Name="OFSLL_OAUTH_SERVER", Description="OFSLL_OAUTH_SERVER",
resourceServerId="99a3e782-ce6d-467c-baec-df687fe326a6",
resourceServerNameSpacePrefix="OFSLL_OAUTH_SERVER.",
audienceClaim="{
"subjects":["OFSLL_B2B_OAUTH_CLIENT"]}",
resServerType="CUSTOM_RESOURCE_SERVER",
Scopes="[{
"scopeName":"OFSLL_REST_ALL",
"description":"ALLOW_ALL"},
{
"scopeName":"OFSLL_REST_NONE",
"description":"ALLOW_NONE"},
{
"scopeName":"DefaultScope",
"description":"DefaultScope"}]",
tokenAttributes="[{
"attrName":"sessionId",
"attrValue":"$session.id",
"attrType":DYNAMIC},
{"attrName":"resSrvAttr","attrValue":"RESOURCECONST","attrType":STATIC}]