user.auth.clients.saml2
Classes
Holds the required SAML2 Attributes |
|
Dict like interface that mangles the name_id that gets passed into the |
|
Extension to the dict/shelve based default cache to use our |
Functions
|
|
|
Module Contents
- user.auth.clients.saml2.handle_logout_request(conn: saml2.client.Saml2Client, name_id: str | None, logout_req: Any, relay_state: str | None) tuple[bool, Any] [source]
- user.auth.clients.saml2.finish_logout(request: onegov.core.request.CoreRequest, user: onegov.user.User, to: str, local: bool = True) webob.Response [source]
- class user.auth.clients.saml2.SAML2Client[source]
-
- treat_as_ldap: bool[source]
Whether or not users created by this provider should show up as being created by LDAP instead. Necessary when using LDAP to sync the users periodically and deactivate old accounts.
- attributes: SAML2Attributes[source]
Mapping of attribute names
- connection(provider: onegov.user.auth.provider.SAML2Provider, request: onegov.core.request.CoreRequest) saml2.client.Saml2Client [source]
Returns the SAML2 instance
- class user.auth.clients.saml2.SAML2Connections[source]
- connections: dict[str, SAML2Client][source]
- client(app: onegov.user.auth.provider.HasApplicationIdAndNamespace) SAML2Client | None [source]
- class user.auth.clients.saml2.Mangled(cache: onegov.core.cache.RedisCacheRegion, prefix: str = '')[source]
Dict like interface that mangles the name_id that gets passed into the cache, so valid name_ids cannot be discovered through key listing
- class user.auth.clients.saml2.IdentityCache(app: onegov.core.framework.Framework)[source]
Bases:
saml2.cache.Cache
Extension to the dict/shelve based default cache to use our redis based dogpile cache instead
- set(name_id: str, entity_id: str, info: dict[str, Any], not_on_or_after: int = 0) None [source]
Stores session information in the cache. Assumes that the name_id is unique within the context of the Service Provider.
- Parameters:
name_id – The subject identifier, a NameID instance
entity_id – The identifier of the entity_id/receiver of an assertion
info – The session info, the assertion is part of this
not_on_or_after – A time after which the assertion is not valid.