2015-05-11 23:05:18 +02:00
|
|
|
.. _-authenticateOrRejectWithChallenge-:
|
|
|
|
|
|
|
|
|
|
authenticateOrRejectWithChallenge
|
|
|
|
|
=================================
|
|
|
|
|
|
|
|
|
|
Signature
|
|
|
|
|
---------
|
|
|
|
|
|
2015-10-01 13:25:41 +02:00
|
|
|
.. includecode:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/SecurityDirectives.scala#authentication-result
|
|
|
|
|
|
2015-06-19 15:35:24 +02:00
|
|
|
.. includecode2:: /../../akka-http/src/main/scala/akka/http/scaladsl/server/directives/SecurityDirectives.scala
|
2015-05-11 23:05:18 +02:00
|
|
|
:snippet: authenticateOrRejectWithChallenge
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
-----------
|
2015-10-09 15:19:36 +02:00
|
|
|
Lifts an authenticator function into a directive.
|
2015-05-11 23:05:18 +02:00
|
|
|
|
2015-10-01 13:25:41 +02:00
|
|
|
This directive allows implementing the low level challange-response type of authentication that some services may require.
|
|
|
|
|
|
|
|
|
|
More details about challange-response authentication are available in the `RFC 2617`_, `RFC 7616`_ and `RFC 7617`_.
|
|
|
|
|
|
|
|
|
|
.. _RFC 2617: http://tools.ietf.org/html/rfc2617
|
|
|
|
|
.. _RFC 7616: http://tools.ietf.org/html/rfc7616
|
|
|
|
|
.. _RFC 7617: http://tools.ietf.org/html/rfc7617
|
2015-05-11 23:05:18 +02:00
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
-------
|
|
|
|
|
|
2015-09-16 23:50:35 +02:00
|
|
|
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/SecurityDirectivesExamplesSpec.scala
|
2015-10-01 13:25:41 +02:00
|
|
|
:snippet: authenticateOrRejectWithChallenge-0
|