Cloud sso

来自ling
跳转至: 导航搜索

basic-auth,spring-session,oauth2 with spring boot admin

[1] https://blog.csdn.net/qq_37170583/article/details/80704660

demo https://gitee.com/zkane/springboot2-oauth2

http://cloud.spring.io/spring-cloud-static/spring-cloud-security/2.0.0.RELEASE/single/spring-cloud-security.html

no suitable HttpMessageConverter found for response type [interface java.util.Map] and content type [text/html;charset=UTF-8]

  • 数据库写错了-->密码没加密-->spring 这块的代码太烂了

security
               .allowFormAuthenticationForClients()
               .tokenKeyAccess("isAuthenticated()")
               .checkTokenAccess("permitAll()");

-->

security
               .allowFormAuthenticationForClients()
               .tokenKeyAccess("isAnonymous()")
               .checkTokenAccess("permitAll()");

You need to authenticate to see a shared key

{"msg":"You need to authenticate to see a shared key","code":1,"data":null}


  • JdbcClientDetailsService#loadClientByClientId错误.麻痹的
  • ProviderManager#authenticate org.springframework.security.authentication.BadCredentialsException: Bad credentials
  • logging.level.root=erro-->logging.level.root=info