jobmission / oauth2-server

spring boot (springboot 3+) oauth2 server sso 单点登录 认证中心 JWT,独立部署,用户管理 客户端管理
MIT License
476 stars 221 forks source link

/oauth/authorize接口的scope是必填字段吗? #31

Closed antheatong closed 1 year ago

antheatong commented 1 year ago

http://127.0.0.1:10380/oauth/authorize?client_id=123123&redirect_uri=http://123.com&response_type=code&state=pIvY63gJ 带上scope就成功,不带scope就失败。

status =500 INTERNAL_SERVER_ERROR,reason Internal Server Error; exception =Cannot invoke "String.split(String)" because "scopes" is null; uri =/oauth/authorize; content Type =null; request parameters ={"response_type":"[code]","redirect_uri":"[http://123.com]","state":"[pIvY63gJ]","client_id":"[123123]"}

java.lang.NullPointerException: Cannot invoke "String.split(String)" because "scopes" is null at com.revengemission.sso.oauth2.server.controller.OAuth2Controller.getAccessToken(OAuth2Controller.java:157) ~[classes!/:0.0.4-SNAPSHOT] at com.revengemission.sso.oauth2.server.controller.OAuth2Controller$$FastClassBySpringCGLIB$$65c4abd3.invoke() ~[classes!/:0.0.4-SNAPSHOT]

jobmission commented 1 year ago

感谢使用,目前功能比较粗糙,有空会继续完善,推荐使用 https://github.com/spring-projects/spring-authorization-server

antheatong commented 1 year ago

好的,谢谢

JerryX commented 1 year ago

感谢使用,目前功能比较粗糙,有空会继续完善,推荐使用 https://github.com/spring-projects/spring-authorization-server

请教个问题,scope_definition_entity 这个表的意义是?

jobmission commented 1 year ago

试试新版本