应用配置修改
POST
/api/v2/applications/{appId}
{
"name": "",
"description": "",
"logo": ""
}
应用配置
、登录控制
、品牌化
、访问授权
、高级配置
相关参数。可参考 Authing 控制台。请求参数
Path 参数
appId
string
应用 ID
示例值:
ocnohf2weo2h8r023hor
Header 参数
Authorization
string
必需
示例值:
Bearer sdfsdfsdf
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
qrcodeScanning
object
可选
redirect
boolean
可选
interval
integer
可选
createdAt
string
可选
updatedAt
string
可选
userPoolId
string
可选
protocol
string
可选
isOfficial
boolean
可选
isDeleted
boolean
可选
isDefault
boolean
可选
isDemo
boolean
可选
name
string
可选
description
null
可选
identifier
string
可选
jwks
object
可选
keys
array [object {12}]
可选
ssoPageCustomizationSettings
null
可选
logo
string
可选
redirectUris
array[string]
可选
logoutRedirectUris
array[string]
可选
initLoginUrl
null
可选
oidcProviderEnabled
boolean
可选
oauthProviderEnabled
boolean
可选
samlProviderEnabled
boolean
可选
casProviderEnabled
boolean
可选
registerDisabled
boolean
可选
loginTabs
array[string]
可选
passwordTabConfig
object
可选
enabledLoginMethods
array[string]
可选
defaultLoginTab
string
可选
registerTabs
array[string]
可选
defaultRegisterTab
string
可选
extendsFieldsEnabled
boolean
可选
extendsFields
array[string]
可选
complateFiledsPlace
array[string]
可选
skipComplateFileds
boolean
可选
ext
null
可选
css
string
可选
oidcConfig
object
可选
grant_types
array[string]
可选
response_types
array[string]
可选
id_token_signed_response_alg
string
可选
token_endpoint_auth_method
string
可选
authorization_code_expire
integer
可选
id_token_expire
integer
可选
access_token_expire
integer
可选
refresh_token_expire
integer
可选
cas_expire
integer
可选
skip_consent
boolean
可选
redirect_uris
array[string]
可选
post_logout_redirect_uris
array[string]
可选
client_id
string
可选
oidcJWEConfig
null
可选
samlConfig
null
可选
oauthConfig
object
可选
id
string
可选
redirect_uris
array[string]
可选
grants
array[string]
可选
access_token_lifetime
integer
可选
refresh_token_lifetime
integer
可选
introspection_endpoint_auth_method
string
可选
revocation_endpoint_auth_method
string
可选
casConfig
null
可选
asaConfig
null
可选
showAuthorizationPage
boolean
可选
enableSubAccount
boolean
可选
enableDeviceMutualExclusion
boolean
可选
loginRequireEmailVerified
boolean
可选
agreementEnabled
boolean
可选
isIntegrate
boolean
可选
ssoEnabled
boolean
可选
template
null
可选
skipMfa
boolean
可选
casExpireBaseBrowser
boolean
可选
isAsa
boolean
可选
appType
string
可选
guardVersion
string
可选
permissionStrategy
object
可选
enabled
boolean
可选
defaultStrategy
string
可选
allowPolicyId
null
可选
denyPolicyId
null
可选
示例
{
"qrcodeScanning": {
"redirect": true,
"interval": 0
},
"createdAt": "string",
"updatedAt": "string",
"userPoolId": "string",
"protocol": "string",
"isOfficial": true,
"isDeleted": true,
"isDefault": true,
"isDemo": true,
"name": "string",
"description": null,
"identifier": "string",
"jwks": {
"keys": [
{
"e": "string",
"n": "string",
"d": "string",
"p": "string",
"q": "string",
"dp": "string",
"dq": "string",
"qi": "string",
"kty": "string",
"kid": "string",
"alg": "string",
"use": "string"
}
]
},
"ssoPageCustomizationSettings": null,
"logo": "string",
"redirectUris": [
"string"
],
"logoutRedirectUris": [
"string"
],
"initLoginUrl": null,
"oidcProviderEnabled": true,
"oauthProviderEnabled": true,
"samlProviderEnabled": true,
"casProviderEnabled": true,
"registerDisabled": true,
"loginTabs": [
"string"
],
"passwordTabConfig": {
"enabledLoginMethods": [
"string"
]
},
"defaultLoginTab": "string",
"registerTabs": [
"string"
],
"defaultRegisterTab": "string",
"extendsFieldsEnabled": true,
"extendsFields": [
"string"
],
"complateFiledsPlace": [
"string"
],
"skipComplateFileds": true,
"ext": null,
"css": "string",
"oidcConfig": {
"grant_types": [
"string"
],
"response_types": [
"string"
],
"id_token_signed_response_alg": "string",
"token_endpoint_auth_method": "string",
"authorization_code_expire": 0,
"id_token_expire": 0,
"access_token_expire": 0,
"refresh_token_expire": 0,
"cas_expire": 0,
"skip_consent": true,
"redirect_uris": [
"string"
],
"post_logout_redirect_uris": [
"string"
],
"client_id": "string"
},
"oidcJWEConfig": null,
"samlConfig": null,
"oauthConfig": {
"id": "string",
"redirect_uris": [
"string"
],
"grants": [
"string"
],
"access_token_lifetime": 0,
"refresh_token_lifetime": 0,
"introspection_endpoint_auth_method": "string",
"revocation_endpoint_auth_method": "string"
},
"casConfig": null,
"asaConfig": null,
"showAuthorizationPage": true,
"enableSubAccount": true,
"enableDeviceMutualExclusion": true,
"loginRequireEmailVerified": true,
"agreementEnabled": true,
"isIntegrate": true,
"ssoEnabled": true,
"template": null,
"skipMfa": true,
"casExpireBaseBrowser": true,
"isAsa": true,
"appType": "string",
"guardVersion": "string",
"permissionStrategy": {
"enabled": true,
"defaultStrategy": "string",
"allowPolicyId": null,
"denyPolicyId": null
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/applications/ocnohf2weo2h8r023hor' \
--header 'Authorization: Bearer sdfsdfsdf' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"qrcodeScanning": {
"redirect": true,
"interval": 0
},
"createdAt": "string",
"updatedAt": "string",
"userPoolId": "string",
"protocol": "string",
"isOfficial": true,
"isDeleted": true,
"isDefault": true,
"isDemo": true,
"name": "string",
"description": null,
"identifier": "string",
"jwks": {
"keys": [
{
"e": "string",
"n": "string",
"d": "string",
"p": "string",
"q": "string",
"dp": "string",
"dq": "string",
"qi": "string",
"kty": "string",
"kid": "string",
"alg": "string",
"use": "string"
}
]
},
"ssoPageCustomizationSettings": null,
"logo": "string",
"redirectUris": [
"string"
],
"logoutRedirectUris": [
"string"
],
"initLoginUrl": null,
"oidcProviderEnabled": true,
"oauthProviderEnabled": true,
"samlProviderEnabled": true,
"casProviderEnabled": true,
"registerDisabled": true,
"loginTabs": [
"string"
],
"passwordTabConfig": {
"enabledLoginMethods": [
"string"
]
},
"defaultLoginTab": "string",
"registerTabs": [
"string"
],
"defaultRegisterTab": "string",
"extendsFieldsEnabled": true,
"extendsFields": [
"string"
],
"complateFiledsPlace": [
"string"
],
"skipComplateFileds": true,
"ext": null,
"css": "string",
"oidcConfig": {
"grant_types": [
"string"
],
"response_types": [
"string"
],
"id_token_signed_response_alg": "string",
"token_endpoint_auth_method": "string",
"authorization_code_expire": 0,
"id_token_expire": 0,
"access_token_expire": 0,
"refresh_token_expire": 0,
"cas_expire": 0,
"skip_consent": true,
"redirect_uris": [
"string"
],
"post_logout_redirect_uris": [
"string"
],
"client_id": "string"
},
"oidcJWEConfig": null,
"samlConfig": null,
"oauthConfig": {
"id": "string",
"redirect_uris": [
"string"
],
"grants": [
"string"
],
"access_token_lifetime": 0,
"refresh_token_lifetime": 0,
"introspection_endpoint_auth_method": "string",
"revocation_endpoint_auth_method": "string"
},
"casConfig": null,
"asaConfig": null,
"showAuthorizationPage": true,
"enableSubAccount": true,
"enableDeviceMutualExclusion": true,
"loginRequireEmailVerified": true,
"agreementEnabled": true,
"isIntegrate": true,
"ssoEnabled": true,
"template": null,
"skipMfa": true,
"casExpireBaseBrowser": true,
"isAsa": true,
"appType": "string",
"guardVersion": "string",
"permissionStrategy": {
"enabled": true,
"defaultStrategy": "string",
"allowPolicyId": null,
"denyPolicyId": null
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
qrcodeScanning
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
protocol
string
必需
isOfficial
boolean
必需
isDeleted
boolean
必需
isDefault
boolean
必需
isDemo
boolean
必需
name
string
必需
description
string | null
必需
identifier
string
必需
jwks
object
必需
ssoPageCustomizationSettings
null
必需
logo
string
必需
redirectUris
array[string]
必需
logoutRedirectUris
array[string]
必需
initLoginUrl
null
必需
oidcProviderEnabled
boolean
必需
oauthProviderEnabled
boolean
必需
samlProviderEnabled
boolean
必需
casProviderEnabled
boolean
必需
registerDisabled
boolean
必需
loginTabs
array[string]
必需
passwordTabConfig
object
必需
defaultLoginTab
string
必需
registerTabs
array[string]
必需
defaultRegisterTab
string
必需
extendsFieldsEnabled
boolean
必需
extendsFields
array[string]
必需
complateFiledsPlace
array[string]
必需
skipComplateFileds
boolean
必需
ext
null
必需
css
string
必需
oidcConfig
object
必需
oidcJWEConfig
object | null
必需
samlConfig
null
必需
oauthConfig
object
必需
casConfig
null
必需
asaConfig
null
必需
showAuthorizationPage
boolean
必需
enableSubAccount
boolean
必需
enableDeviceMutualExclusion
boolean
必需
loginRequireEmailVerified
boolean
必需
agreementEnabled
boolean
必需
isIntegrate
boolean
必需
ssoEnabled
boolean
必需
template
null
必需
skipMfa
boolean
必需
casExpireBaseBrowser
boolean
必需
isAsa
boolean
必需
appType
string
必需
guardVersion
string
必需
permissionStrategy
object
必需
示例
{
"code": 200,
"message": "更新应用成功!",
"data": {
"qrcodeScanning": {
"redirect": false,
"interval": 1500
},
"id": "61debdec45371e8b8c4dd39e",
"createdAt": "2022-01-12T11:39:24.744Z",
"updatedAt": "2022-01-12T11:49:49.381Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"protocol": "oidc",
"isOfficial": false,
"isDeleted": false,
"isDefault": false,
"isDemo": false,
"name": "测试修改",
"description": null,
"identifier": "snerger",
"jwks": {
"keys": [
{
"e": "AQAB",
"n": "02WNXziB9aO4zANyZkEaY9Q9_gBhQCs_V52rXgSKj3YM8lXkEozVB0NiF2s7lYGXY2MGKNykRfqO3VUyrrBKMmGMPp8PmEk6h2bkTJTf_RFowkTwOcuHYPIzD_OKjEZpxtLArFU9pOh4N5ZBpdCVjBYSGigrimlRqhyQncqOysFR5yQ4h6_Mb_AsJ1FQfm00uOoum3AgLZPaBHU9bp3H4DTaP2MVuqyyoZ9ZIWKoMGxs5AAfUyXy7RqrpPSSn3pzakO_l1LoQEAmGURtL0kCD1klCLAdF6cFBNIlXBpK8L4CCTdi8mFwGLbaC4ausrsIhOGFgbG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qBT1UhfxkYtrEUOfCjnla_qi8UgsID3h4EqquTbqTiug92hyntq-On4yQkd2UYsM5F2fBkmb1r7yieAcSEk2MTn79_x81rzQ-0SqJKTKkDpr8mOpDucpnPstrBoUHSKRjs5jEPzfPWQtfAla9mQWeVdAWTyAGhF26Cts",
"kty": "RSA",
"kid": "-2_ilaN4aUTD-ogvth-lEh47pd_oLEb3lRsjzXHkI_o",
"alg": "RS256",
"use": "sig"
}
]
},
"ssoPageCustomizationSettings": null,
"logo": "https://files.authing.co/authing-console/default-app-logo.png",
"redirectUris": [
"http://console.authing.localhost:3000/console/get-started/61debdec45371e8b8c4dd39e"
],
"logoutRedirectUris": [],
"initLoginUrl": null,
"oidcProviderEnabled": true,
"oauthProviderEnabled": false,
"samlProviderEnabled": false,
"casProviderEnabled": false,
"registerDisabled": false,
"loginTabs": [
"phone-code",
"password"
],
"passwordTabConfig": {
"enabledLoginMethods": [
"username-password",
"email-password",
"phone-password"
]
},
"defaultLoginTab": "password",
"registerTabs": [
"email",
"phone"
],
"defaultRegisterTab": "email",
"extendsFieldsEnabled": false,
"extendsFields": [],
"complateFiledsPlace": [],
"skipComplateFileds": false,
"ext": null,
"css": "/* \n Edit login page css\n eg:\n .authing-guard-layout {\n background: black !important;\n }\n Change the background color\n*/",
"oidcConfig": {
"grant_types": [
"authorization_code",
"password",
"refresh_token"
],
"response_types": [
"code"
],
"id_token_signed_response_alg": "HS256",
"token_endpoint_auth_method": "client_secret_post",
"authorization_code_expire": 600,
"id_token_expire": 1209600,
"access_token_expire": 1209600,
"refresh_token_expire": 2592000,
"cas_expire": 1209600,
"skip_consent": true,
"redirect_uris": [
"http://console.authing.localhost:3000/console/get-started/61debdec45371e8b8c4dd39e"
],
"post_logout_redirect_uris": [],
"client_id": "61debdec45371e8b8c4dd39e"
},
"oidcJWEConfig": null,
"samlConfig": null,
"oauthConfig": {
"id": "61debdec45371e8b8c4dd39e",
"redirect_uris": [
"http://console.authing.localhost:3000/console/get-started/61debdec45371e8b8c4dd39e"
],
"grants": [
"authorization_code"
],
"access_token_lifetime": 1209600,
"refresh_token_lifetime": 2592000,
"introspection_endpoint_auth_method": "client_secret_post",
"revocation_endpoint_auth_method": "client_secret_post"
},
"casConfig": null,
"asaConfig": null,
"showAuthorizationPage": false,
"enableSubAccount": false,
"enableDeviceMutualExclusion": false,
"loginRequireEmailVerified": false,
"agreementEnabled": false,
"isIntegrate": false,
"ssoEnabled": false,
"template": null,
"skipMfa": false,
"casExpireBaseBrowser": false,
"isAsa": false,
"appType": "INDIVIDUAL",
"guardVersion": "v2",
"permissionStrategy": {
"enabled": false,
"defaultStrategy": "ALLOW_ALL",
"allowPolicyId": null,
"denyPolicyId": null
}
}
}
修改于 2022-01-13 03:19:53