Cola Cloud 基于 Spring Boot, Spring Cloud 构建微服务架构企业级开发平台,集成OAuth2认证、集成短信验证码登录、微信小程序登录、FlyWay数据库版本管理、网关集成Swagger聚合所有服务API文档。基于SpringBootAdmin集成Hystrix、Turbine监控。开发用户中心、权限管理、组织架构、数据字典、消息中心、通知中心等模块。基于MyBatisPlus Generator 开发代码生成器
请问继承自AbstractPreparableIntegrationAuthenticator的自定义认证,比如短信认证,按照你的代码在prepare里进行验证码校验,不匹配则抛出OAuth2Exception异常,不过这个异常信息并不能返回给前端,response的结果为:
{
"error": "unauthorized",
"error_description": "Full authentication is required to access this resource"
}
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).