File: strategy.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 (34 lines) | stat: -rw-r--r-- 1,173 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
23
24
25
26
27
28
29
30
31
32
33
34
module OAuth2
  module Strategy
    class Base
      def initialize: (OAuth2::Client) -> void
    end

    class AuthCode < Base
      def authorize_params: (?Hash[untyped, untyped]) -> Hash[untyped, untyped]
      def authorize_url: (?Hash[untyped, untyped]) -> String
      def get_token: (String, ?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
    end

    class Implicit < Base
      def authorize_params: (?Hash[untyped, untyped]) -> Hash[untyped, untyped]
      def authorize_url: (?Hash[untyped, untyped]) -> String
      def get_token: (*untyped) -> void
    end

    class Password < Base
      def authorize_url: () -> void
      def get_token: (String, String, ?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
    end

    class ClientCredentials < Base
      def authorize_url: () -> void
      def get_token: (?Hash[untyped, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
    end

    class Assertion < Base
      def authorize_url: () -> void
      def get_token: (Hash[untyped, untyped], Hash[Symbol, untyped], ?Hash[Symbol, untyped], ?Hash[Symbol, untyped]) -> OAuth2::AccessToken
    end
  end
end