oauth2 2.0.25 → 2.1.0
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +139 -3
- data/README.md +64 -83
- data/lib/oauth2/access_token.rb +7 -2
- data/lib/oauth2/client.rb +42 -12
- data/lib/oauth2/sanitized_log_formatter.rb +198 -0
- data/lib/oauth2/version.rb +4 -1
- data/lib/oauth2.rb +11 -1
- data/sig/oauth2.rbs +206 -0
- data.tar.gz.sig +0 -0
- metadata +40 -61
- metadata.gz.sig +0 -0
- data/CITATION.cff +0 -20
- data/CODE_OF_CONDUCT.md +0 -134
- data/CONTRIBUTING.md +0 -275
- data/FUNDING.md +0 -70
- data/MIT.md +0 -21
- data/RUBOCOP.md +0 -71
- data/SECURITY.md +0 -21
- data/certs/pboling.pem +0 -27
- data/sig/oauth2/access_token.rbs +0 -25
- data/sig/oauth2/authenticator.rbs +0 -22
- data/sig/oauth2/client.rbs +0 -52
- data/sig/oauth2/error.rbs +0 -8
- data/sig/oauth2/filtered_attributes.rbs +0 -11
- data/sig/oauth2/response.rbs +0 -18
- data/sig/oauth2/sanitized_logger.rbs +0 -32
- data/sig/oauth2/strategy.rbs +0 -34
- data/sig/oauth2/thing_filter.rbs +0 -10
- data/sig/oauth2/version.rbs +0 -6
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module OAuth2
|
|
2
|
-
class SanitizedLogger
|
|
3
|
-
def initialize: (untyped logger) -> void
|
|
4
|
-
|
|
5
|
-
def add: (untyped severity, ?untyped message, ?untyped progname) { () -> untyped } -> untyped
|
|
6
|
-
def <<: (String message) -> untyped
|
|
7
|
-
def debug: (?untyped progname) { () -> untyped } -> untyped
|
|
8
|
-
def info: (?untyped progname) { () -> untyped } -> untyped
|
|
9
|
-
def warn: (?untyped progname) { () -> untyped } -> untyped
|
|
10
|
-
def error: (?untyped progname) { () -> untyped } -> untyped
|
|
11
|
-
def fatal: (?untyped progname) { () -> untyped } -> untyped
|
|
12
|
-
def unknown: (?untyped progname) { () -> untyped } -> untyped
|
|
13
|
-
def close: () -> void
|
|
14
|
-
def formatter: () -> untyped
|
|
15
|
-
def formatter=: (untyped formatter) -> void
|
|
16
|
-
def level: () -> untyped
|
|
17
|
-
def level=: (untyped level) -> void
|
|
18
|
-
def progname: () -> untyped
|
|
19
|
-
def progname=: (untyped progname) -> void
|
|
20
|
-
def respond_to_missing?: (Symbol method_name, ?bool include_private) -> bool
|
|
21
|
-
def method_missing: (Symbol method_name, *untyped args) { () -> untyped } -> untyped
|
|
22
|
-
|
|
23
|
-
private
|
|
24
|
-
|
|
25
|
-
def log: (Symbol level, ?untyped progname) { () -> untyped } -> untyped
|
|
26
|
-
def sanitize: (untyped message) -> untyped
|
|
27
|
-
def thing_filter: () -> OAuth2::ThingFilter
|
|
28
|
-
def sanitize_authorization_header: (String message) -> String
|
|
29
|
-
def sanitize_json_pairs: (String message) -> String
|
|
30
|
-
def sanitize_form_and_query_pairs: (String message) -> String
|
|
31
|
-
end
|
|
32
|
-
end
|
data/sig/oauth2/strategy.rbs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module OAuth2
|
|
2
|
-
module Strategy
|
|
3
|
-
class Base
|
|
4
|
-
def initialize: (OAuth2::Client) -> void
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
class AuthCode < Base
|
|
8
|
-
def authorize_params: (?Hash[untyped, untyped]) -> Hash[untyped, untyped]
|
|
9
|
-
def authorize_url: (?Hash[untyped, untyped]) -> String
|
|
10
|
-
def get_token: (String, ?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
class Implicit < Base
|
|
14
|
-
def authorize_params: (?Hash[untyped, untyped]) -> Hash[untyped, untyped]
|
|
15
|
-
def authorize_url: (?Hash[untyped, untyped]) -> String
|
|
16
|
-
def get_token: (*untyped) -> void
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
class Password < Base
|
|
20
|
-
def authorize_url: () -> void
|
|
21
|
-
def get_token: (String, String, ?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
class ClientCredentials < Base
|
|
25
|
-
def authorize_url: () -> void
|
|
26
|
-
def get_token: (?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
class Assertion < Base
|
|
30
|
-
def authorize_url: () -> void
|
|
31
|
-
def get_token: (Hash[untyped, untyped], Hash[Symbol, untyped], ?Hash[Symbol, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
data/sig/oauth2/thing_filter.rbs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module OAuth2
|
|
2
|
-
class ThingFilter
|
|
3
|
-
attr_reader things: Array[String]
|
|
4
|
-
attr_reader label: String
|
|
5
|
-
|
|
6
|
-
def initialize: (Enumerable[untyped] things, label: String) -> void
|
|
7
|
-
def filtered?: (untyped thing_name) -> bool
|
|
8
|
-
def pattern_source: () -> String
|
|
9
|
-
end
|
|
10
|
-
end
|