Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #32 from yola/master

Patch the Server constructor
  • Loading branch information...
commit fc90195fda90940db203b6cd84f39773b4d8735d 2 parents 12efd78 + 4c17264
@willnorris willnorris authored
Showing with 11 additions and 9 deletions.
  1. +11 −9 openid/server/server.py
View
20 openid/server/server.py
@@ -1504,12 +1504,14 @@ class Server(object):
associations I can make and how.
@type negotiator: L{openid.association.SessionNegotiator}
"""
-
- signatoryClass = Signatory
- encoderClass = SigningEncoder
- decoderClass = Decoder
-
- def __init__(self, store, op_endpoint=None):
+
+ def __init__(
+ self,
+ store,
+ op_endpoint=None,
+ signatoryClass=Signatory,
+ encoderClass=SigningEncoder,
+ decoderClass=Decoder):
"""A new L{Server}.
@param store: The back-end where my associations are stored.
@@ -1525,9 +1527,9 @@ def __init__(self, store, op_endpoint=None):
if you want to respond to any version 2 OpenID requests.
"""
self.store = store
- self.signatory = self.signatoryClass(self.store)
- self.encoder = self.encoderClass(self.signatory)
- self.decoder = self.decoderClass(self)
+ self.signatory = signatoryClass(self.store)
+ self.encoder = encoderClass(self.signatory)
+ self.decoder = decoderClass(self)
self.negotiator = default_negotiator.copy()
if not op_endpoint:
Please sign in to comment.
Something went wrong with that request. Please try again.