Пример #1
0
 def __init__(self, context, request):
     super(OpenIDMixin, self).__init__(context, request)
     self.server_url = get_server_url()
     self.openid_server = Server(openid_store, self.server_url)
Пример #2
0
def make_identifier_select_endpoint():
    """Create an endpoint for use in OpenID identifier select mode."""
    endpoint = OpenIDServiceEndpoint()
    endpoint.server_url = get_server_url()
    endpoint.type_uris = [OPENID_IDP_2_0_TYPE]
    return endpoint
Пример #3
0
 def openid_server_url(self):
     """The OpenID Server endpoint URL for Launchpad."""
     return get_server_url()