authie 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authie/session.rb +8 -5
- data/lib/authie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4941a730d79a7366a0bc9918c87cbea607073a673d7ee2869f7d14c0b74efe74
|
4
|
+
data.tar.gz: 90575465e60a29257aeb3181715a9b82e1ca2b9c1cc10c03bee504796983e3b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b9acde1ac324fd41d3850a4efe44ecbe9c7c6cb045c0400707182c93fabda16fb20f33f409a7ab086a9fbd7c2e013415522b819da6b9d48ce9d62831c091177
|
7
|
+
data.tar.gz: 195f23c7ca8403180f322093d34593f05015c4aaad58ac836e86058b0f137ad1ed23cc62687243afa00fa4c062479b3a1b502870e0acdaff22a24d3d9adac55a
|
data/lib/authie/session.rb
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
module Authie
|
2
2
|
class Session < ActiveRecord::Base
|
3
3
|
|
4
|
-
#
|
5
|
-
|
6
|
-
class
|
7
|
-
class
|
4
|
+
# Errors which will be raised when there's an issue with a session's
|
5
|
+
# validity in the request.
|
6
|
+
class ValidityError < Error; end
|
7
|
+
class InactiveSession < ValidityError; end
|
8
|
+
class ExpiredSession < ValidityError; end
|
9
|
+
class BrowserMismatch < ValidityError; end
|
10
|
+
class HostMismatch < ValidityError; end
|
11
|
+
|
8
12
|
class NoParentSessionForRevert < Error; end
|
9
|
-
class HostMismatch < Error; end
|
10
13
|
|
11
14
|
# Set table name
|
12
15
|
self.table_name = "authie_sessions"
|
data/lib/authie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Rails library for storing user sessions in a backend database
|
14
14
|
email:
|