oauthost.routing.yml 1.67 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
oauthost.log_in_go:
  path: /oauth/login
  defaults:
    _controller: '\Drupal\oauthost\Controller\OAuthLogin::loginGo'
  requirements:
    _access: 'TRUE'
oauthost.callback_log_in:
  path: /oauth/cb
  defaults:
    _controller: '\Drupal\oauthost\Controller\CBController::loginCB'
  requirements:
    _access: 'TRUE'
oauthost.log_out_go:
  path: /oauth/logout
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\OAuthLogout::logoutGo'
  requirements:
    _user_is_logged_in: 'TRUE'
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
oauthost.user.send_verification_code:
  path: '/oauth/user/sendvercode'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\CurrentUser::sendVerificationCode'
  requirements:
    _user_is_logged_in: 'TRUE'
oauthost.user.verify_verification_code:
  path: '/oauth/user/verifyvercode'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\CurrentUser::verifyVerificationCode'
  requirements:
    _user_is_logged_in: 'TRUE'
oauthost.user.save_profile:
  path: '/oauth/user/save'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\CurrentUser::saveUserProfile'
  requirements:
    _user_is_logged_in: 'TRUE'
oauthost.user.get_data:
  path: '/oauth/userdata'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\CurrentUser::getApplicantUserData'
  requirements:
    _user_is_logged_in: 'TRUE'
oauthost.current_user:
  path: '/oauth/curuser'
  options:
    _auth: [ 'basic_auth' ]
  defaults:
    _controller: '\Drupal\oauthost\Controller\CurrentUser::getLoginInfo'
  requirements:
    _user_is_logged_in: 'TRUE'