Class: OmniAuth::Strategies::Webex

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/webex.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



12
13
14
15
# File 'lib/omniauth/strategies/webex.rb', line 12

def authorize_params
  options.authorize_params[:scope] = 'spark-compliance:memberships_read spark:all spark-compliance:memberships_write spark-admin:people_write spark-admin:roles_read spark-admin:organizations_read spark-compliance:events_read spark-compliance:rooms_read spark-compliance:team_memberships_read spark-compliance:messages_write spark:kms spark-compliance:team_memberships_write spark-compliance:teams_read spark-admin:licenses_read spark-compliance:messages_read spark-admin:people_read'
  super
end

#basic_auth_headerObject



23
24
25
# File 'lib/omniauth/strategies/webex.rb', line 23

def basic_auth_header
  'Basic '
end

#build_access_tokenObject



17
18
19
20
21
# File 'lib/omniauth/strategies/webex.rb', line 17

def build_access_token
  Rails.logger.debug 'Omniauth build access token'
  options.token_params[:headers] = { 'Authorization' => basic_auth_header }
  super
end