简体   繁体   English

如何导入 Spring 安全 OAuth 授权服务器?

[英]How do I import Spring Security OAuth Authorization Server?

I am trying to build out a security implementation in Java.我正在尝试在 Java 中构建安全实现。

According to the announcement from earlier this month, v0.2.1 of Spring Authorization Server is available.根据本月初的公告,Spring Authorization Server v0.2.1 已经可用。 That page even privides a reference:该页面甚至提供了参考:

compile 'org.springframework.security:spring-security-oauth2-authorization-server:0.2.1'

Including this in my project (in the dependencies block) – using Netbeans 12.6, Java 17, Gradle 7.3.1 – gives an error.在我的项目中(在依赖项块中)包括这个——使用 Netbeans 12.6、Java 17、Gradle 7.3.1——给出错误。 In the first instance,:第一个例子,:

Could not find method compile() for arguments
[org.springframework.security:spring-security-oauth2-authorization-server:0.2.1]
on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

On that basis, changing it to to implementation , the error is then:在此基础上,将其更改为implementation ,则错误为:

Could not resolve all files for configuration ':testCompileClasspath'.
Could not resolve org.springframework.security:spring-security-oauth2-authorization-server:0.2.1.

What is the trick to including Spring Authorization Server?包含 Spring 授权服务器的技巧是什么?

How do I get this to work?我怎样才能让它工作?

Now It was moved to production, you can find in this Blog and the most recently Blog现在它已移至生产,您可以在此博客和最近的博客中找到

compile 'org.springframework.security:spring-security-oauth2-authorization-server:0.2.0'编译'org.springframework.security:spring-security-oauth2-authorization-server:0.2.0'

Github Github

暂无
暂无

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

相关问题 我正在尝试将新的 spring 安全 oauth2 授权服务器从 0.3.1 更新到 1.0.0 并遇到无效的 scope 错误。如何修复它 - I was trying to update new spring security oauth2 authorization server from 0.3.1 to 1.0.0 and got an invalide scope error.How to fix it 我是否需要具有Spring Security OAuth2的资源服务器? - Do I need resource server with Spring Security OAuth2? Spring Boot Oauth2-授权与资源服务器之间的安全性不兼容 - Spring boot Oauth2 - Security incompatibility between Authorization and Resource server 我如何转换 <oauth:authorization-server> 到Java Config? - How do I convert <oauth:authorization-server> to Java Config? 如何使用Spring配置Oauth2授权服务器? - How to configure a Oauth2 authorization server with Spring? 如何在java中分离授权服务器弹簧安全性 - How to separate authorization server spring security in java 如何配置Spring Security以使用OAuth而不是基本授权? - How to configure Spring Security to use OAuth instead of Basic Authorization? 无法从 spring-security-oauth2-authorization-server 1.0.0 获取授权码 - Can't get an authorization code from spring-security-oauth2-authorization-server 1.0.0 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 使用OAuth2在Spring Security中进行用户授权 - User authorization in spring security using OAuth2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM