风暴路径 Spring 启动

Stormpath Spring Boot

我克隆了 official Stormpath Spring Boot tutorial git repo,在 ~/.stormpath/apiKey.properties 生成并保存了我的密钥对,构建了项目 (mvn clean package),运行 它 (java -jar target/*.jar).

教程网络应用演示了一个网页,其中包含用户登录后显示的三个选项卡(主页、仪表板、登录)。

它在一台机器上按预期工作。当我在任何其他机器上重复相同的过程时,仪表板选项卡不显示。所有机器都使用openjdk-1.7.

我已经将您引用的项目更新为最新版本的 Java SDK 并推送了它。

除了来自本地主机的连接之外,在任何情况下,您都应该看到此消息:

2016-05-18 21:54:50.811  WARN 94320 --- [nio-8080-exec-4] .s.s.f.a.CookieAuthenticationResultSaver : INSECURE IDENTITY COOKIE CONFIGURATION: Your current Stormpath SDK account cookie configuration allows insecure identity cookies (transmission over non-HTTPS connections)!  This should typically never occur otherwise your users will be susceptible to man-in-the-middle attacks.  For more information in Servlet-only environments, please see the Security Notice here: https://docs.stormpath.com/java/servlet-plugin/login.html#https-required and the documentation on authentication state here: https://docs.stormpath.com/java/servlet-plugin/login.html#authentication-state and here: https://docs.stormpath.com/java/servlet-plugin/login.html#cookie-config (the callout entitled 'Secure Cookies').  If you are using Spring Boot, Spring Boot-specific documentation for these concepts are here: https://docs.stormpath.com/java/spring-boot-web/login.html#security-notice https://docs.stormpath.com/java/spring-boot-web/login.html#authentication-state and https://docs.stormpath.com/java/spring-boot-web/login.html#cookie-storage

ngrok 是一项很好的服务,可以在本地主机上设置到服务 运行 的 SSL 隧道。还有其他的。

如果这不能为您解决问题,请随时给我们发送电子邮件:support@stormpath.com。