FailureError('Unable to retrieve token secret from storage!',)
Some users are reporting lost session after redirect within the _login procedure_.

the original issue as opened by @petertirrell was:
# Pyramid Adapter and example

Implement an adapter for the Pyramid framework with example.

diff --git a/authomatic/core.py b/authomatic/core.py
index f397a42..acd6048 100644
--- a/authomatic/core.py
+++ b/authomatic/core.py
@@ -352,13 +352,18 @@ class Session(object):
             Expires value will be ``Thu, 01-Jan-1970 00:00:01 GMT``.
         """
 
-        template = '{name}={value}; Domain={domain}; Path={path}; HttpOnly{secure}{expires}'
-
         value = 'deleted' if delete else self._serialize(self.data)
 
         split_url = urlparse.urlsplit(self.adapter.url)
         domain = split_url.netloc.split(':')[0]
 
+        # Work-around for issue #11, failure of WebKit-based browsers to accept
+        # cookies set as part of a redirect response in some circumstances.
+        if not '.' in domain:
+            template = '{name}={value}; Path={path}; HttpOnly{secure}{expires}'
+        else:
+            template = '{name}={value}; Domain={domain}; Path={path}; HttpOnly{secure}{expires}'
+
         return template.format(name=self.name,
                                value=value,
                                domain=domain,
['authomatic/core.py']