Oauth 2.0 OAuth2无法获取身份验证代码。始终获得';经过身份验证的客户端无权使用此授权授予类型';
我有一个使用(simple-oauth2)编写的简单节点应用程序 样品在这里 我使用下面的配置Oauth 2.0 OAuth2无法获取身份验证代码。始终获得';经过身份验证的客户端无权使用此授权授予类型';,oauth-2.0,wso2,Oauth 2.0,Wso2,我有一个使用(simple-oauth2)编写的简单节点应用程序 样品在这里 我使用下面的配置 const credentials = { client: { id: 'XXXXXXXX', secret: 'YYYYYYYYYY' }, auth: { tokenHost: 'https://localhost:8243', tokenPath: '/token', authorizeHost: 'https://localhost:8243
const credentials = {
client: {
id: 'XXXXXXXX',
secret: 'YYYYYYYYYY'
},
auth: {
tokenHost: 'https://localhost:8243',
tokenPath: '/token',
authorizeHost: 'https://localhost:8243',
authorizePath: '/authorize'
}
};
我从/授权处得到以下回复
{错误\u说明:'经过身份验证的客户端未被授权使用此授权授予类型',
错误:“未经授权的_客户端”}
在日志中,我得到以下信息
TID: [-1234] [] [2018-05-09 17:03:49,697] DEBUG {org.wso2.carbon.identity.oauth2.authz.handlers.AbstractResponseTypeHandler} - Unsupported Grant Type : authorization_code for client id : 8_90GgNFMBY7zvZqEeTeKqaLgC0a {org.wso2.carbon.identity.oauth2.authz.handlers.AbstractResponseTypeHandler}
TID: [-1234] [] [2018-05-09 17:03:49,698] DEBUG {org.wso2.carbon.identity.oauth2.authz.AuthorizationHandlerManager} - Client validation failed for user : admin@carbon.super, for client : 8_90GgNFMBY7zvZqEeTeKqaLgC0a {org.wso2.carbon.identity.oauth2.authz.AuthorizationHandlerManager}
TID: [-1234] [] [2018-05-09 17:03:49,699] DEBUG {org.wso2.carbon.identity.oauth2.authz.AuthorizationHandlerManager} - Error response received for authorization request by user : admin@carbon.super, client : 8_90GgNFMBY7zvZqEeTeKqaLgC0a, scope : PRODUCTION {org.wso2.carbon.identity.oauth2.authz.AuthorizationHandlerManager}
TID: [-1234] [] [2018-05-09 17:03:49,700] DEBUG {org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader} - loadClass(org.apache.oltu.oauth2.as.response.OAuthASResponse, false) {org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader}
请告诉我怎么了
谢谢
Mahesh我的坏毛病,在启用商店中的“代码”后,一切正常