spresso.controller.grant.authentication.config package¶
Submodules¶
spresso.controller.grant.authentication.config.forward module¶
-
class
Forward[source]¶ Bases:
spresso.controller.grant.settings.Setting-
endpoints= Container({'_dictionary': {'proxy': Endpoint({'methods': ['GET'], 'path': '/.well-known/spresso-proxy', 'name': 'proxy'})}})¶
-
js_template= 'script/fwd.js'¶
-
proxy_template= 'html/proxy.html'¶
-
resource_path= 'resources/authentication/'¶
-
spresso.controller.grant.authentication.config.identity_provider module¶
-
class
IdentityProvider(domain, private_key_path, public_key_path)[source]¶ Bases:
spresso.controller.grant.settings.Setting-
endpoints= Container({'_dictionary': {'sign': Endpoint({'methods': ['POST'], 'path': '/sign', 'name': 'sign'}), 'info': Endpoint({'methods': ['GET'], 'path': '/.well-known/spresso-info', 'name': 'info'}), 'login': Endpoint({'methods': ['GET', 'POST'], 'path': '/.well-known/spresso-login', 'name': 'login'})}})¶
-
endpoints_ext= Container({'_dictionary': {'proxy': Endpoint({'methods': ['GET'], 'path': '/.well-known/spresso-proxy', 'name': 'proxy'})}})¶
-
js_template= 'script/idp.js'¶
-
json_schemata= Container({'_dictionary': {'info': Schema({'schema': WellKnownInfoDefinition({}), 'name': 'info'}), 'sign': Schema({'schema': IdentityAssertionDefinition({}), 'name': 'sign'})}})¶
-
resource_path= 'resources/authentication/'¶
-
sri= False¶
-
sri_hash= None¶
-
spresso.controller.grant.authentication.config.relying_party module¶
-
class
RelyingParty(domain, forwarder_domain)[source]¶ Bases:
spresso.controller.grant.settings.Setting-
caching_settings= SelectionContainer({'_dictionary': {'default': CachingSetting({'in_memory': True, 'name': 'default', 'lifetime': 172800})}, '_strategy': 'select'})¶
-
default_caching= CachingSetting({'in_memory': True, 'name': 'default', 'lifetime': 172800})¶
-
default_idp_endpoints= Container({'_dictionary': {'info': Endpoint({'methods': ['GET'], 'path': '/.well-known/spresso-info', 'name': 'info'}), 'login': Endpoint({'methods': ['GET', 'POST'], 'path': '/.well-known/spresso-login', 'name': 'login'})}, 'name': 'default'})¶
-
endpoints= Container({'_dictionary': {'index': Endpoint({'methods': ['GET', 'POST'], 'path': '/', 'name': 'index'}), 'login': Endpoint({'methods': ['POST'], 'path': '/login', 'name': 'login'}), 'redirect': Endpoint({'methods': ['GET'], 'path': '/redir', 'name': 'redirect'}), 'wait': Endpoint({'methods': ['GET'], 'path': '/wait', 'name': 'wait'}), 'start_login': Endpoint({'methods': ['POST'], 'path': '/startLogin', 'name': 'start_login'})}})¶
-
endpoints_ext= SelectionContainer({'_dictionary': {'default': Container({'_dictionary': {'info': Endpoint({'methods': ['GET'], 'path': '/.well-known/spresso-info', 'name': 'info'}), 'login': Endpoint({'methods': ['GET', 'POST'], 'path': '/.well-known/spresso-login', 'name': 'login'})}, 'name': 'default'})}, '_strategy': 'select'})¶
-
fwd_selector= SelectionContainer({'_dictionary': {}, '_strategy': 'random'})¶
-
js_template= 'script/rp.js'¶
-
json_schemata= Container({'_dictionary': {'start_login': Schema({'schema': StartLoginDefinition({}), 'name': 'start_login'}), 'info': Schema({'schema': WellKnownInfoDefinition({}), 'name': 'info'}), 'ia_signature': Schema({'schema': IdentityAssertionDefinition({}), 'name': 'ia_signature'})}})¶
-
proxies= {}¶
-
redirect_template= 'html/redir.html'¶
-
regexp= '^[^#&]+@([a-zA-Z0-9-.]+)$'¶
-
resource_path= 'resources/authentication/'¶
-
verify= True¶
-
wait_template= 'html/wait.html'¶
-