{
"name": "",
"description": "",
"logo": ""
}
应用配置
、登录控制
、品牌化
、访问授权
、高级配置
相关参数。可参考 Authing 控制台。{
"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
}
}
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
}
}'
{
"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_l1LoQEAmGURtL0kCD1klCLAdF6cFBNIlXBpK8L4CCTdi8mFwGLbaC4ausrsIhOGFgbGlGblRdHnofjNztQ",
"d": "M4xm7dpMroaO8IjCo7aqZb-ComabUFd7abUT7agz1YnW3F0fcXqQE-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ieAcSEk2MTn79_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
}
}
}