小编fal*_*ies的帖子

Spring Boot 2.0.0 + OAuth2

Spring Boot 2 + Sping Security OAuth2是否仍支持@AuthorizationServer注释?从阅读发行说明开始,有些内容尚未移植:

Oauth2支持

这是我的相关部分build.grade:

Auth服务器

// security
compile "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
// oauth
// https://mvnrepository.com/artifact/org.springframework.security.oauth/spring-security-oauth2
compile "org.springframework.security.oauth:spring-security-oauth2:2.2.1.RELEASE"
Run Code Online (Sandbox Code Playgroud)

客户端服务器

// support for Oauth2 user token services not yet migrated into Spring Boot 2.0
compile "org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.BUILD-SNAPSHOT"
Run Code Online (Sandbox Code Playgroud)

而现在我的授权服务器的oauth2端点只返回一个401,当我试图通过一个客户端ID和客户端秘密为Basic Authentication/oauth/token.传入用户名和密码会产生不同的代码路径.所以OAuth过滤器看起来并不完整.

我也发现了这一点:Spring Boot 2 OAuth2启动器更改.

是否有配置更新或我是否需要一组不同的gradle依赖项才能将Authorization Server恢复到之前的状态?

谢谢!


UPDATE

我想关闭这个问题的循环.除了加密客户端机密.从Spring OAuth 2.3.2:Spring OAuth 2.3.2开始,RedisTokenStore问题也得到了解决

spring-security oauth-2.0 spring-boot

7
推荐指数
2
解决办法
7407
查看次数

grunt appending hash to dist/ files

TL;DR: How do i stop the hash from being appended to the dist/ files Thanks!

Using yeoman (grunt + bower), I am trying to deploy my app to heroku. I can run the app in connect mode but the dist/ version of the app has a hash like 1d9f82a4.logo.png that is breaking my image links in my html. Here's my grunt file:

'use strict';
var LIVERELOAD_PORT = 35729;
var SERVER_PORT = 9000;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = …
Run Code Online (Sandbox Code Playgroud)

javascript gruntjs

4
推荐指数
1
解决办法
2955
查看次数

AFNetworking Library在iOS 7中失败

使用新的iOS 7 Beta并下载最新版本的AFNetworking,我转到了File> Add Files to Project,并传入了AFNetworking.framework目录.现在我收到了大量的链接器错误.为了进行健全性检查,我将提交历史记录回滚到iOS 6,并且所有内容都已成功编译.这是日志:

    Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_AFHTTPClient", referenced from:
      _OBJC_CLASS_$_CloudGlyphAPIClient in CloudGlyphAPIClient.o
  "_OBJC_CLASS_$_AFJSONRequestOperation", referenced from:
      objc-class-ref in CloudGlyphAPIClient.o
  "_OBJC_METACLASS_$_AFHTTPClient", referenced from:
      _OBJC_METACLASS_$_CloudGlyphAPIClient in CloudGlyphAPIClient.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我是否需要等待AFNetworking与下一版本的iOS保持同步,或者这是一个架构问题?

谢谢

ios afnetworking

3
推荐指数
1
解决办法
7453
查看次数