应用密钥刷新
PATCH
/api/v2/application/{appId}/refresh-secret
请求参数
Path 参数
appId
string
APP ID
示例值:
61df925846bed781f5757166
Header 参数
Authorization
string
Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://core.authing.cn/api/v2/application/61df925846bed781f5757166/refresh-secret' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408'
返回响应
🟢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
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
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": "刷新应用 secret 成功!",
"data": {
"qrcodeScanning": {
"redirect": false,
"interval": 1500
},
"id": "61df925846bed781f5757166",
"createdAt": "2022-01-13T02:45:44.115Z",
"updatedAt": "2022-01-13T06:26:53.842Z",
"userPoolId": "61b95d6c96d42670da568408",
"protocol": "oidc",
"isOfficial": false,
"isDeleted": false,
"isDefault": false,
"isDemo": false,
"name": "12",
"description": null,
"identifier": "12",
"jwks": {
"keys": [
{
"e": "AQAB",
"n": "zijpJKJROdyLX9WyVOVmLTX7zpi-tdyRe3ZUdHD8oEv44pLa4WdOqPesSeRJS0BxGuUuGmH67YpMh_VAZChg2xZXCF0q-YnVowO4NfnMpivjhsi-GeAwPXQyfabAOENwqUSPrYnyLki1dYfGym5xCV0ttrV0H5R043UApn5CJKByiC7jJC6DiNsNqkWiHRK1MVh3LmIoVdJHh5vcnBcqz_mv3IkimM2Qs-cCQ0QESeUPbX6v_N48_w2BSEeqdtczv0T7ttRaRRIZwhLAs9eX0jRk2bS1l-k_0RZmYwkLcdvRmaQSzj3UvoguY0lYGVaxmyE0fNJ-SjgGrSxggv3lvw",
"d": "zgy5qPHKuUgizTAqwwtcqkdQW9bylZXUmk9UbeUXuab1JI-e0LaOOfcBbgEK-Hl6EmWJRLk1MQGPKDwJlZF97LtRVXy5HRuUOQ_Yp6n5zwQCro4o4nfd_y4J4OgvKozNJ4DtEYfUVEo7gzKnj1_-_lrw-7I0U_PvN_-THNUIis0-a1dFZDmh9jqSEhl5xO0kkfOMRisN4akZJL6HfmyUo3CHUWciGHuyizaVDsq5QfySpprpzmGwvACsKhWGFkMupe31RCKcn1y8pMbowk6zZJRwXFgvZ7zP0obDZXdwgFgt94FpaetlstdWL1eBmrQdXis6j_dP5c6BrY07VgGXUQ",
"p": "83nDFmNJjhxCiDEOT5M9kpOJJ-OhZwoRBlqdErGlyH7MLiGnXTy7WRilmLur02eI7yWh16sTJd_-iGVw5WvGO-t_lY5bvex6IMUZd1R7lLBssFj-uxKxZWYRSOMq5BOcbqMHfrcOVtv5nlo0JwIf6feIgu7qvrjnhecxxcHqLis",
"q": "2MPAMTq-HhQiPXb7erjEdOek_3JuslkOCpHmhHRDnSz5iBHK3NGSB432hU_pA5Ghkt3nNUjYZ8YTv1pw91n2LVvE2uPhn4kLDEQFK2op_MmoK1-3DOm8_Io2rCiVucfovSTnWRoFDqGK5IWgCpXj4o7jWLzqHgS9bcFlFgI1cL0",
"dp": "C32ipGrZLNjOlwjhqQXE8Sb_YR-QHYHPHeKm6RvzPAwn7MFv2amlGeZc4mFxEZAgWVEIW1pak_4HUD6hXmKAv5E0u0U1tTf055kFw6j8EB9ncccxdnjCYIu5oxv9iTgXuOz-zI8tIRJOrJeLQJAMG4mwKqXF9GxbmOk5YyDswXM",
"dq": "UsRr3mBPt6x4Zn_IBlQGr5zDo8ZN_kuC0QZkvq6mIp3JqeshSq-60qeiOcUJdBNnXmzcm7v05ar8X1RpTglLtoYT5ICe5gut7EEMuEcRQTS-wdEKVCPrxYIA3jug8A8lDxPIQn1s8Ok934QmV-Rj314v8PIxcsTcj8wIjR7KyQE",
"qi": "en1kR2yUmLJ2bXSHA-Sd-6kxwLQhtdrSAcVjGzwR3tMlUXe0B5S3CEaRnbj0Ytw2MU_QGLfFmp4oVpXeN5dAcXX2NnRewdZTYrebMrjtc1ukNArc8W3rLKpGT1KGAkwbPZYDo9Xr9O3r-haJgzpFlwvPQm8vHNA1iE3m-GoImfQ",
"kty": "RSA",
"kid": "Gk45GA2vV7ohfp_Gu02bzOnoFgwIff2iD8JcT7aeYAM",
"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/61df925846bed781f5757166"
],
"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/61df925846bed781f5757166"
],
"post_logout_redirect_uris": [],
"client_id": "61df925846bed781f5757166"
},
"oidcJWEConfig": null,
"samlConfig": null,
"oauthConfig": {
"id": "61df925846bed781f5757166",
"redirect_uris": [
"http://console.authing.localhost:3000/console/get-started/61df925846bed781f5757166"
],
"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": true,
"defaultStrategy": "ALLOW_ALL",
"allowPolicyId": null,
"denyPolicyId": null
}
}
}
修改于 2022-01-14 08:57:25