session_test.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/session_test/session_test.routing.yml
  2. 10 core/modules/system/tests/modules/session_test/session_test.routing.yml
  3. 11.x core/modules/system/tests/modules/session_test/session_test.routing.yml
core/modules/system/tests/modules/session_test/session_test.routing.yml
2 string references to YAML keys in session_test.routing.yml
SessionAuthenticationTest::testBasicAuthNoSession in core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php
Tests that a session is not started automatically by basic authentication.
SessionAuthenticationTest::testSessionFromBasicAuthenticationDoesNotLeak in core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php
Check that a basic authentication session does not leak.

File

core/modules/system/tests/modules/session_test/session_test.routing.yml

View source
  1. session_test.get:
  2. path: '/session-test/get'
  3. defaults:
  4. _title: 'Session value'
  5. _controller: '\Drupal\session_test\Controller\SessionTestController::get'
  6. options:
  7. no_cache: TRUE
  8. requirements:
  9. _access: 'TRUE'
  10. session_test.get_from_session_object:
  11. path: '/session-test/get-from-session-object'
  12. defaults:
  13. _title: 'Session value'
  14. _controller: '\Drupal\session_test\Controller\SessionTestController::getFromSessionObject'
  15. options:
  16. no_cache: TRUE
  17. requirements:
  18. _access: 'TRUE'
  19. session_test.id:
  20. path: '/session-test/id'
  21. defaults:
  22. _title: 'Session ID'
  23. _controller: '\Drupal\session_test\Controller\SessionTestController::getId'
  24. options:
  25. no_cache: TRUE
  26. requirements:
  27. _access: 'TRUE'
  28. session_test.id_from_cookie:
  29. path: '/session-test/id-from-cookie'
  30. defaults:
  31. _title: 'Session ID from cookie'
  32. _controller: '\Drupal\session_test\Controller\SessionTestController::getIdFromCookie'
  33. requirements:
  34. _access: 'TRUE'
  35. session_test.set:
  36. path: '/session-test/set/{test_value}'
  37. defaults:
  38. _title: 'Set session value'
  39. _controller: '\Drupal\session_test\Controller\SessionTestController::set'
  40. options:
  41. no_cache: TRUE
  42. converters:
  43. test_value: '\s+'
  44. requirements:
  45. _access: 'TRUE'
  46. session_test.no_set:
  47. path: '/session-test/no-set/{test_value}'
  48. defaults:
  49. _title: 'Set session value but do not save session'
  50. _controller: '\Drupal\session_test\Controller\SessionTestController::noSet'
  51. options:
  52. no_cache: TRUE
  53. converters:
  54. test_value: '\s+'
  55. requirements:
  56. _access: 'TRUE'
  57. session_test.set_message:
  58. path: '/session-test/set-message'
  59. defaults:
  60. _title: 'Set message'
  61. _controller: '\Drupal\session_test\Controller\SessionTestController::setMessage'
  62. requirements:
  63. _access: 'TRUE'
  64. session_test.set_message_but_do_not_save:
  65. path: '/session-test/set-message-but-do-not-save'
  66. defaults:
  67. _title: 'Set message but do not save session'
  68. _controller: '\Drupal\session_test\Controller\SessionTestController::setMessageButDoNotSave'
  69. requirements:
  70. _access: 'TRUE'
  71. session_test.is_logged_in:
  72. path: '/session-test/is-logged-in'
  73. defaults:
  74. _title: 'Check if user is logged in'
  75. _controller: '\Drupal\session_test\Controller\SessionTestController::isLoggedIn'
  76. requirements:
  77. _user_is_logged_in: 'TRUE'
  78. session_test.form:
  79. path: '/session-test/form'
  80. defaults:
  81. _form: '\Drupal\session_test\Form\SessionTestForm'
  82. _title: 'Test form'
  83. requirements:
  84. _access: 'TRUE'
  85. session_test.trace_handler:
  86. path: '/session-test/trace-handler'
  87. defaults:
  88. _title: 'Returns the trace recorded by test proxy session handlers as JSON'
  89. _controller: '\Drupal\session_test\Controller\SessionTestController::traceHandler'
  90. requirements:
  91. _access: 'TRUE'
  92. session_test.get_session_basic_auth:
  93. path: '/session-test/get-session'
  94. defaults:
  95. _title: 'Get session information using basic authentication'
  96. _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
  97. options:
  98. no_cache: TRUE
  99. _auth: ['basic_auth']
  100. requirements:
  101. _permission: 'administer site configuration'
  102. session_test.get_session_no_auth:
  103. path: '/session-test/get-session-no-auth'
  104. defaults:
  105. _title: 'Get session information'
  106. _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
  107. options:
  108. no_cache: TRUE
  109. requirements:
  110. _access: 'TRUE'
  111. session_test.set_session:
  112. path: '/session-test/set-session/{test_value}'
  113. defaults:
  114. _title: 'Set a session value using basic authentication'
  115. _controller: '\Drupal\session_test\Controller\SessionTestController::setSession'
  116. options:
  117. no_cache: TRUE
  118. _auth: ['basic_auth']
  119. converters:
  120. test_value: '\s+'
  121. requirements:
  122. _permission: 'administer site configuration'
  123. session_test.set_bag_flag:
  124. path: '/session-test/set-bag-flag'
  125. defaults:
  126. _title: 'Sets the test flag in the session test bag'
  127. _controller: '\Drupal\session_test\Controller\SessionTestController::setSessionBagFlag'
  128. options:
  129. no_cache: TRUE
  130. requirements:
  131. _access: 'TRUE'
  132. session_test.clear_bag_flag:
  133. path: '/session-test/clear-bag-flag'
  134. defaults:
  135. _title: 'Clears the test flag in the session test bag'
  136. _controller: '\Drupal\session_test\Controller\SessionTestController::clearSessionBagFlag'
  137. options:
  138. no_cache: TRUE
  139. requirements:
  140. _access: 'TRUE'
  141. session_test.has_bag_flag:
  142. path: '/session-test/has-bag-flag'
  143. defaults:
  144. _title: 'Prints a message if the flag in the session bag is set'
  145. _controller: '\Drupal\session_test\Controller\SessionTestController::hasSessionBagFlag'
  146. options:
  147. no_cache: TRUE
  148. requirements:
  149. _access: 'TRUE'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.