使用eggjs框架,配合mysql数据库,实现了OAuth2.0授权服务,支持授权码模式授权、密码模式授权。 代码地址:https://github.com/caiya/eggjs oAuth2 server