{
"ResourceServerSettings": {
"accessTokenServicesSettings": {
"tokenUsernameAttribute": "See information in the table below",
"tokenPublicKeyUrl": "See information in the table below",
"administratorAlias": "See information in the table below",
"administratorInternalName": "Administrator",
"issuer": "See information in the table below",
"tokenValidationType": "local",
"tokenClientIDAttribute": "See information in the table below"
},
"globalScopes": "See information in the table below",
"scopeClaimName: "See information in the table below",
"uriScopes": [
{
"uri": "See information in the table below",
"scopes": "See information in the table below",
"method": "See information in the table below"
}
]
}
|
パラメータ
|
説明
|
値
|
||
|---|---|---|---|---|
|
tokenUsernameAttribute
|
オプション: リソースリクエストのユーザー名を格納するクレーム名。
|
デフォルト値: “unique_name”
|
||
|
tokenPublicKeyUrl
|
必須: AD FS 公開キーエンドポイント (アクセストークンの検証に使用)。
|
値は次のように構成されます。
https://<ADFS ホスト FQDN>adfs/discovery/keys
|
||
|
administratorAlias
|
オプション。
ThingWorx 管理者として RP にアクセスする場合にのみ必須です。
|
AD FS で設定されている管理者のユーザー名。
|
||
|
administratorInternalName
|
オプション: ThingWorx で設定されている管理者のユーザー名。
|
Administrator
|
||
|
tokenValidationType
|
必須: アクセストークン (JWT) の検証がローカルで実行されるプロパティポイント。
|
local
|
||
|
issuer
|
オプション: 追加のトークン検証チェック用の Issuer 値。
|
トークンの ISS クレームに表示される Issuer 値。
|
||
|
tokenClientIDAttribute
|
M2M (クライアント資格証明) フローに必要です。リソースリクエスト用の SP clientID を格納するクレーム名。
|
appid
|
|
パラメータ
|
説明
|
値
|
|---|---|---|
|
globalScopes
|
グローバルスコープのコンマ区切りリスト。リソースにアクセスするには、これらのうち少なくとも 1 つが accessToken に含まれている必要があります。このパラメータが欠落しているか空の場合、THINGWORX がデフォルトのグローバルスコープになります。
|
"globalScopes": "THINGWORX |
|
scopeClaimName
|
オプション。デフォルト値は scp です。
|
|
パラメータ
|
説明
|
値
|
||
|---|---|---|---|---|
|
uri
|
URI パターン。グローバルスコープへの追加のスコープを必要とするリソースまたはリソースグループを定義します。
|
Thingworx/Things/** - control all Things Thingworx/Things/Thing1 – control Thing1 |
||
|
scopes
|
追加のスコープのコンマ区切りリスト。リストされているすべてのスコープ (グローバルを含む) への許可を持つユーザーだけがリソースを取得できます。
|
|||
|
method
|
オプション。スコープが適用される URI メソッドを定義します。
|
REST プロトコルで使用可能なすべてのメソッド (GET や POST など) を値として指定できます。
|
