Tag: wso2is

WSO2 Identity Server AuthenticationAdmin API身份validation失败

我正在按照这里提到的教程: https : //docs.wso2.com/display/IS500/Managing+Users+and+Roles+with+APIs 并使用页面上提供的示例代码: http : //cache.facilelogin.com/org.wso2.identity.um.sample.zip 我已将所需的JAR添加到eclipse项目中。 该项目成功构建,没有任何问题。 但是,当我运行该项目时,我收到以下错误: log4j:WARN找不到logger(org.apache.axiom.om.util.StAXUtils)的appender。 log4j:WARN请正确初始化log4j系统。 org.apache.axis2.AxisFault:身份validation失败:在org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation)上传递了无效的远程地址 – org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:508)中的myapp .java:375)org.apache.axis.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)位于org.apache.axis上的org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)。 client.OperationClient.execute(OperationClient.java:165)org.wso2.carbon.authenticator.proxy.AuthenticationAdminStub.login(AuthenticationAdminStub.java:311)at org.wso2.identity.um.sample.IdentityServerClient.main(IdentityServerClient。 Java的:67) 这是代码: package org.wso2.identity.um.sample; import java.util.HashMap; import java.util.Map; import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.context.ConfigurationContextFactory; import org.apache.axis2.transport.http.HTTPConstants; import org.wso2.carbon.authenticator.proxy.AuthenticationAdminStub; import org.wso2.carbon.um.ws.api.WSRealmBuilder; import org.wso2.carbon.user.core.UserRealm; import org.wso2.carbon.user.core.UserStoreManager; public class IdentityServerClient { // ONE TIME TASKS WE NEED TO DO BEFORE EXECUTING […]

身份validation流程中grant_type = client_credentials和grant_type =密码之间的区别?

我想了解Authentication或OAuth2 Flow概念中grant_type=client_credentials和grant_type=password之间的区别。 我关注以下网站: http://help.atavist.com/api:authentication http://apiwiki.poken.com/authentication/oauth2 就JavaScript开发中使用gran_type ,我以not secure方式设定grant_type=password 。 但我还是有些人可以帮助理解这个概念。 我还观察到grant_type=client_credentials不提供“ refresh_token ”,它只提供access_token ,其中grant_type=password提供access_token和refresh_token 。 希望得到详细的解释。 我正在为OAuth2使用WSO2 API Manager进行应用程序开发

使用Spring Security + WSO2 Identity Server的OAuth 2.0

我正在开发一个Web应用程序来公开由OAuth 2.0保护的许多RESTful服务。 这是计划的架构: 1- OAuth授权提供商: WSO2身份服务器(IS) 2- OAuth资源服务器:使用以下技术的Java Web应用程序: Jersey(实现和公开Web服务) Spring Security(实现OAuth资源服务器部分) 我已经看到了几个关于如何使用WSO2 IS作为授权服务器+ WSO2 ESB作为资源服务器来保护RESTful服务的示例( ex1 , ex2 , ex3等)。 这不是我需要的。 遗憾的是,授权服务器和资源服务器之间的交互超出了OAuth2 RFC的范围。 所以,我找不到它应该是什么样子。 这是我的问题: 如何配置spring security作为资源服务器来validation外部OAuth提供程序(例如WSO2 IS)发出的访问令牌? 资源服务器应该如何识别给定访问令牌的范围? 如何识别来自WSO2 IS的访问令牌的资源所有者? 谢谢