oauth2 code授权方式登录

This commit is contained in:
xiaoxiaoqiong
2022-07-05 14:38:11 +08:00
parent bf2e6269f9
commit abfefdf8eb
3 changed files with 67 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ Rails.application.routes.draw do
get 'oauth/register', to: 'oauth#register'
post 'oauth/auto_register', to: 'oauth#auto_register'
get 'oauth2', to: 'oauth2#show'
post 'oauth2', to: 'oauth2#create'
resources :edu_settings
scope '/api' do