Module: BWAPI::Client::SSO

Included in:
BWAPI::Client
Defined in:
lib/bwapi/client/sso.rb

Overview

SSO module for sso endpoint

Instance Method Summary collapse

Instance Method Details

#sso(user_id) ⇒ Hash

Note:

must have sso oauth_token

Authorize another user for access

Parameters:

  • user_id (Integer)

    The user id

Returns:

  • (Hash)

    User authorization

See Also:



12
13
14
# File 'lib/bwapi/client/sso.rb', line 12

def sso(user_id)
  get "sso/#{user_id}"
end

#sso_user(opts = {}) ⇒ Object

Endpoints to manage users using SSO keys

TODO: Add parameters documentation



19
20
21
# File 'lib/bwapi/client/sso.rb', line 19

def sso_user(opts = {})
  get 'sso/user', opts
end