File: authenticator.rbs

package info (click to toggle)
ruby-oauth2 2.0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,608 kB
  • sloc: ruby: 5,441; javascript: 529; makefile: 4; sh: 4
file content (22 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module OAuth2
  class Authenticator
    include OAuth2::FilteredAttributes

    attr_reader mode: (Symbol | String)
    attr_reader id: String?
    attr_reader secret: String?

    def initialize: (String? id, String? secret, (Symbol | String) mode) -> void

    def apply: (Hash[untyped, untyped]) -> Hash[untyped, untyped]

    def self.encode_basic_auth: (String, String) -> String

    private

    def apply_params_auth: (Hash[untyped, untyped]) -> Hash[untyped, untyped]
    def apply_client_id: (Hash[untyped, untyped]) -> Hash[untyped, untyped]
    def apply_basic_auth: (Hash[untyped, untyped]) -> Hash[untyped, untyped]
    def basic_auth_header: () -> Hash[String, String]
  end
end