Module: Slack::Web::Api::Endpoints::OpenidConnect

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/openid_connect.rb

Instance Method Summary collapse

Instance Method Details

#openid_connect_token(options = {}) ⇒ Object

Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :client_id (string)

    Issued when you created your application.

  • :client_secret (string)

    Issued when you created your application.

  • :code (string)

    The code param returned via the OAuth callback.

  • :grant_type (enum)

    The grant_type param as described in the OAuth spec.

  • :redirect_uri (string)

    This must match the originally submitted URI (if one was sent).

  • :refresh_token (string)

    The refresh_token param as described in the OAuth spec.

See Also:



26
27
28
# File 'lib/slack/web/api/endpoints/openid_connect.rb', line 26

def openid_connect_token(options = {})
  post('openid.connect.token', options)
end

#openid_connect_userInfo(options = {}) ⇒ Object

Get the identity of a user who has authorized Sign in with Slack.



35
36
37
# File 'lib/slack/web/api/endpoints/openid_connect.rb', line 35

def openid_connect_userInfo(options = {})
  post('openid.connect.userInfo', options)
end