epb-auth-tools 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/errors.rb +53 -30
- data/lib/http_client.rb +0 -1
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1b1fb574665a72ca0bdc7ee114645deac275e7ec17f4b41fa080ca4c8831fa3
|
|
4
|
+
data.tar.gz: 0d0baaf4cc5df70f8e762b2451a40dd6b016d1e45329c3afd6447b2ad8857cd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9765ef35a90762641b91bc6c80f1dc43c9928bec457ec5e7a678376b8277f909da2bcb002422ac87d55d1989cea2a0fac414a0ee94c14f44f9d438733be8ca0
|
|
7
|
+
data.tar.gz: 9ebc8a9003fb3db97592f929ab571633bbfa25d17ace369fbb3c6a5bee51956db63068da593dedff1d38eefe3c36e7547024538ff913bf9a7296d1aa6efa40f2
|
data/lib/errors.rb
CHANGED
|
@@ -2,35 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
module Auth
|
|
4
4
|
module Errors
|
|
5
|
-
class Error < RuntimeError
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class
|
|
19
|
-
|
|
20
|
-
class
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class
|
|
25
|
-
|
|
26
|
-
class
|
|
27
|
-
|
|
28
|
-
class
|
|
29
|
-
|
|
30
|
-
class
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class
|
|
5
|
+
class Error < RuntimeError
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class Processor < Auth::Errors::Error
|
|
9
|
+
end
|
|
10
|
+
class ProcessorHasNoSecret < Auth::Errors::Error
|
|
11
|
+
end
|
|
12
|
+
class ProcessorHasNoIssuer < Auth::Errors::Error
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class Token < Auth::Errors::Error
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
class TokenMissing < Auth::Errors::Token
|
|
19
|
+
end
|
|
20
|
+
class TokenPayloadError < Auth::Errors::Token
|
|
21
|
+
end
|
|
22
|
+
class TokenExpired < Auth::Errors::TokenPayloadError
|
|
23
|
+
end
|
|
24
|
+
class TokenNotYetValid < Auth::Errors::TokenPayloadError
|
|
25
|
+
end
|
|
26
|
+
class TokenHasNoIssuer < Auth::Errors::TokenPayloadError
|
|
27
|
+
end
|
|
28
|
+
class TokenHasNoSubject < Auth::Errors::TokenPayloadError
|
|
29
|
+
end
|
|
30
|
+
class TokenHasNoIssuedAt < Auth::Errors::TokenPayloadError
|
|
31
|
+
end
|
|
32
|
+
class TokenHasNoExpiry < Auth::Errors::TokenPayloadError
|
|
33
|
+
end
|
|
34
|
+
class TokenIssuerIncorrect < Auth::Errors::TokenPayloadError
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class TokenDecodeError < Auth::Errors::Token
|
|
38
|
+
end
|
|
39
|
+
class TokenTamperDetected < Auth::Errors::TokenDecodeError
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class Client < Auth::Errors::Error
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class ClientHasNoAuthServer < Auth::Errors::Client
|
|
46
|
+
end
|
|
47
|
+
class ClientHasNoClientId < Auth::Errors::Client
|
|
48
|
+
end
|
|
49
|
+
class ClientHasNoClientSecret < Auth::Errors::Client
|
|
50
|
+
end
|
|
51
|
+
class ClientHasNoBaseUri < Auth::Errors::Client
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class Network < Auth::Errors::Error
|
|
55
|
+
end
|
|
56
|
+
class NetworkConnectionFailed < Auth::Errors::Network
|
|
57
|
+
end
|
|
35
58
|
end
|
|
36
59
|
end
|
data/lib/http_client.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: epb-auth-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lawrence Goldstien <lawrence.goldstien@madetech.com>
|
|
8
8
|
- Yusuf Sheikh <yusuf@madetech.com>
|
|
9
9
|
- Jaseera <jaseera@madetech.com>
|
|
10
|
-
|
|
10
|
+
- Kevin Keenoy <kevin.keenoy@communities.gov.uk>
|
|
11
|
+
autorequire:
|
|
11
12
|
bindir: bin
|
|
12
13
|
cert_chain: []
|
|
13
14
|
date: 2020-03-11 00:00:00.000000000 Z
|
|
@@ -40,8 +41,8 @@ dependencies:
|
|
|
40
41
|
- - "~>"
|
|
41
42
|
- !ruby/object:Gem::Version
|
|
42
43
|
version: '1.4'
|
|
43
|
-
description:
|
|
44
|
-
email:
|
|
44
|
+
description:
|
|
45
|
+
email:
|
|
45
46
|
executables: []
|
|
46
47
|
extensions: []
|
|
47
48
|
extra_rdoc_files: []
|
|
@@ -56,7 +57,7 @@ homepage: https://github.com/communitiesuk/epb-auth-tools
|
|
|
56
57
|
licenses:
|
|
57
58
|
- MIT
|
|
58
59
|
metadata: {}
|
|
59
|
-
post_install_message:
|
|
60
|
+
post_install_message:
|
|
60
61
|
rdoc_options: []
|
|
61
62
|
require_paths:
|
|
62
63
|
- lib
|
|
@@ -71,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
72
|
- !ruby/object:Gem::Version
|
|
72
73
|
version: '0'
|
|
73
74
|
requirements: []
|
|
74
|
-
rubygems_version: 3.0.
|
|
75
|
-
signing_key:
|
|
75
|
+
rubygems_version: 3.0.3
|
|
76
|
+
signing_key:
|
|
76
77
|
specification_version: 4
|
|
77
78
|
summary: Tools for authentication and authorisation with JWTs and OAuth
|
|
78
79
|
test_files: []
|