session_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/session_test/session_test.routing.yml
  2. 8.9.x core/modules/system/tests/modules/session_test/session_test.routing.yml
  3. 10 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.trace_handler_rewrite_unmodified:
  93. path: '/session-test/trace-handler-rewrite-unmodified'
  94. defaults:
  95. _title: 'Returns a trace of rewritten but unmodified session data recorded by test proxy session handlers as JSON'
  96. _controller: '\Drupal\session_test\Controller\SessionTestController::traceHandlerRewriteUnmodified'
  97. requirements:
  98. _access: 'TRUE'
  99. session_test.get_session_basic_auth:
  100. path: '/session-test/get-session'
  101. defaults:
  102. _title: 'Get session information using basic authentication'
  103. _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
  104. options:
  105. no_cache: TRUE
  106. _auth: ['basic_auth']
  107. requirements:
  108. _permission: 'administer site configuration'
  109. session_test.get_session_no_auth:
  110. path: '/session-test/get-session-no-auth'
  111. defaults:
  112. _title: 'Get session information'
  113. _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
  114. options:
  115. no_cache: TRUE
  116. requirements:
  117. _access: 'TRUE'
  118. session_test.set_session:
  119. path: '/session-test/set-session/{test_value}'
  120. defaults:
  121. _title: 'Set a session value using basic authentication'
  122. _controller: '\Drupal\session_test\Controller\SessionTestController::setSession'
  123. options:
  124. no_cache: TRUE
  125. _auth: ['basic_auth']
  126. converters:
  127. test_value: '\s+'
  128. requirements:
  129. _permission: 'administer site configuration'
  130. session_test.set_bag_flag:
  131. path: '/session-test/set-bag-flag'
  132. defaults:
  133. _title: 'Sets the test flag in the session test bag'
  134. _controller: '\Drupal\session_test\Controller\SessionTestController::setSessionBagFlag'
  135. options:
  136. no_cache: TRUE
  137. requirements:
  138. _access: 'TRUE'
  139. session_test.clear_bag_flag:
  140. path: '/session-test/clear-bag-flag'
  141. defaults:
  142. _title: 'Clears the test flag in the session test bag'
  143. _controller: '\Drupal\session_test\Controller\SessionTestController::clearSessionBagFlag'
  144. options:
  145. no_cache: TRUE
  146. requirements:
  147. _access: 'TRUE'
  148. session_test.has_bag_flag:
  149. path: '/session-test/has-bag-flag'
  150. defaults:
  151. _title: 'Prints a message if the flag in the session bag is set'
  152. _controller: '\Drupal\session_test\Controller\SessionTestController::hasSessionBagFlag'
  153. options:
  154. no_cache: TRUE
  155. requirements:
  156. _access: 'TRUE'
  157. session_test.trigger_write_exception:
  158. path: '/session-test/trigger-write-exception'
  159. defaults:
  160. _title: 'Trigger an exception when the session is written'
  161. _controller: '\Drupal\session_test\Controller\SessionTestController::triggerWriteException'
  162. options:
  163. no_cache: TRUE
  164. requirements:
  165. _access: 'TRUE'

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