inginious.frontend.plugins.auth package¶
Auth plugins
Submodules¶
inginious.frontend.plugins.auth.saml2_auth module¶
SAML SSO plugin
-
class
inginious.frontend.plugins.auth.saml2_auth.MetadataPage[source]¶ Bases:
inginious.frontend.pages.utils.INGIniousPage-
methods: Optional[List[str]] = {'GET', 'POST'}¶ A list of methods this view can handle.
-
-
class
inginious.frontend.plugins.auth.saml2_auth.SAMLAuthMethod(id, name, imlink, settings)[source]¶ Bases:
inginious.frontend.user_manager.AuthMethodSAML SSO auth method
- Returns
True if the auth method allow sharing, else false
-
callback(auth_storage)[source]¶ - Parameters
auth_storage – The session auth method storage dict
- Returns
User tuple and , or None, if failed
-
get_auth_link(auth_storage, share=False)[source]¶ - Parameters
auth_storage – The session auth method storage dict
- Returns
The authentication link
- Parameters
auth_storage – The session auth method storage dict
- Returns
False if error
inginious.frontend.plugins.auth.ldap_auth module¶
LDAP plugin
-
class
inginious.frontend.plugins.auth.ldap_auth.LDAPAuthenticationPage[source]¶ Bases:
inginious.frontend.pages.social.AuthenticationPage-
methods: Optional[List[str]] = {'GET', 'POST'}¶ A list of methods this view can handle.
-
-
class
inginious.frontend.plugins.auth.ldap_auth.LdapAuthMethod(id, name, imlink, settings)[source]¶ Bases:
inginious.frontend.user_manager.AuthMethodLDAP auth method
- Returns
True if the auth method allow sharing, else false
-
callback(auth_storage)[source]¶ - Parameters
auth_storage – The session auth method storage dict
- Returns
User tuple and , or None, if failed
-
get_auth_link(auth_storage, share=False)[source]¶ - Parameters
auth_storage – The session auth method storage dict
- Returns
The authentication link
- Parameters
auth_storage – The session auth method storage dict
- Returns
False if error
-
inginious.frontend.plugins.auth.ldap_auth.init(plugin_manager, _, _2, conf)[source]¶ Allow to connect through a LDAP service
Available configuration:
plugins: - plugin_module": "inginious.frontend.plugins.auth.ldap_auth", host: "ldap.test.be", port: 0, encryption: "ssl", base_dn: "o=test,c=be", request: "(uid={})", name: "LDAP Login"
- host
The host of the ldap server
- encryption
Encryption method used to connect to the LDAP server Can be either “none”, “ssl” or “tls”
- request
Request made to the server in order to find the dn of the user. The characters “{}” will be replaced by the login name.