summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorStéphane Raimbault <stephane.raimbault@gmail.com>2013-05-06 14:27:17 +0200
committerStéphane Raimbault <stephane.raimbault@gmail.com>2013-05-06 14:28:13 +0200
commitd11ebfb8fc6290feb799fb2798f2d541fa95e67e (patch)
tree078225967a227ad76b18e2742cd5048df4965053 /docs
parent005e0485cee33c167eb6a03c72b0aa0603b1cd0a (diff)
downloadoauthlib-d11ebfb8fc6290feb799fb2798f2d541fa95e67e.tar.gz
Replace 3 minus signs by an equal
Diffstat (limited to 'docs')
-rw-r--r--docs/preconfigured_servers.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/preconfigured_servers.rst b/docs/preconfigured_servers.rst
index 41948c1..f6148bc 100644
--- a/docs/preconfigured_servers.rst
+++ b/docs/preconfigured_servers.rst
@@ -1,27 +1,27 @@
Preconfigured all-in-one servers
================================
-A pre configured server is an all-in-one endpoint serving a specific
-class of application clients. As the individual endpoints, they depend
-on the use of a :doc:`validator`.
+A pre configured server is an all-in-one endpoint serving a specific class of
+application clients. As the individual endpoints, they depend on the use of a
+:doc:`validator`.
-Once constructed they can be plugged into any of the available
-:doc:`decorators` or used on their own. For the latter case you
-might be interested in looking at :doc:`endpoints`.
+Once constructed they can be plugged into any of the available :doc:`decorators`
+or used on their own. For the latter case you might be interested in looking at
+:doc:`endpoints`.
Construction is simple, only import your validator and you are good to go::
from your_validator import your_validator
-
from oauthlib.oauth2 import WebApplicationServer
- server - WebApplicationServer(your_validator)
+
+ server = WebApplicationServer(your_validator)
If you prefer to construct tokens yourself you may pass a token generator::
def your_token_generator(request):
return 'a_custom_token' + request.client_id
- server - WebApplicationServer(your_validator, token_generator-your_token_generator)
+ server = WebApplicationServer(your_validator, token_generator=your_token_generator)
.. autoclass:: oauthlib.oauth2.draft25.WebApplicationServer
:members: