简体   繁体   English

OAuth资源所有者密码Java

[英]OAuth Resource Owner Password Java

Is there a Java provider implementation of the OAuth's Resource Owner Password flow or a library to include in my project? 是否存在OAuth的资源所有者密码流的Java提供程序实现或要包含在我的项目中的库?

I have read that Spring Security provides those libraries with a server or provider implementation, can I only include those Spring libraries to my standard Java EE project without using the full Spring stack? 我已经读过Spring Security为那些库提供了服务器或提供程序实现,是否可以仅将这些Spring库包含到我的标准Java EE项目中而不使用完整的Spring堆栈?

Could it be possible or reasonable to implement the OAuth provider and client for that flow following the RFC? 在RFC之后为该流程实现OAuth提供程序和客户端是否可行或合理?

The UAA project uses Spring Security's OAuth provider to implement a full OAuth2 authorization server (including resource owner grant). UAA项目使用Spring Security的OAuth提供程序来实现完整的OAuth2授权服务器(包括资源所有者授权)。 Why not use that? 为什么不使用它?

You can't "only include those Spring libraries to my standard Java EE project" without using Spring. 如果不使用Spring,则不能“仅将这些Spring库包括到我的标准Java EE项目中”。 It's not really clear from your question how you would expect that to work. 从您的问题还不清楚,您希望它如何工作。 Where would the authorization server be implemented, for example? 例如,授权服务器将在哪里实施?

It's certainly possible to implement the OAuth2 provider yourself, especially if you are only using part of the spec, but it's not trivial and probably not "reasonable" if it is just incidental to your main application development. 当然,可以自己实现OAuth2提供程序,特别是如果您仅使用规范的一部分,但是如果它只是与您的主应用程序开发有关的话,那么它并不简单,并且可能不合理。

You will still need to consider how to protect your resource servers when they are accessed by an application which has obtained a token from the authorization server. 当从授权服务器获得令牌的应用程序访问资源服务器时,您仍然需要考虑如何保护它们。 In other words, they need to be able to check and understand the token that is issued and make an access decision based on it. 换句话说,他们需要能够检查和理解所发出的令牌并基于该令牌做出访问决策。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有OAuth 2资源所有者密码凭证的Java scribe客户端 - Java scribe client with OAuth 2 Resource Owner Password Credentials 在Play(Java)中实现OAuth2的密码所有者资源流 - Implementing the password owner resource flow of OAuth2 in Play (Java) WSO2 IS OAuth2资源所有者密码-获取访问令牌 - WSO2 IS OAuth2 Resource owner password - getting access token 如何在Google OAuth中使用资源所有者密码凭证? - How to use Resource Owner Password Credentials with Google OAuth? 具有使用资源所有者密码凭证oauth流的多个客户端的中央身份验证服务器 - Central auth server with multiple clients using resource owner password credentials oauth flow Spring 安全 5.3.2 OAuth 2,资源所有者密码凭证流程 - 如何将额外的 HEADER 参数添加到授权服务器 uri - Spring Security 5.3.2 OAuth 2, Resource Owner Password Credentials Flow - How to add additional HEADER parameters to authorization server uri Spring OAuth2资源服务器的Java配置 - Java Configuration for Spring OAuth2 Resource Server 如果用用户密码和所有者密码加密,如何用用户密码解密Java中的128bit RC4 pdf文件 - How to decrypt 128bit RC4 pdf file in java with user password if it is encrypted with user as well as owner password 如何在 Spring 引导 Oauth2 资源服务器中使用密码授予处理 CORS - How do I handle CORS in Spring Boot Oauth2 Resource Server with password grant 使用Java所有者aeonbits进行测试 - Testing with java owner aeonbits
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM