module SMARTAppLaunch::SMARTClientOptions
def oauth_flow(suite_options)
def oauth_flow(suite_options) if suite_options[:client_type].include?(AUTHORIZATION_CODE_TAG) AUTHORIZATION_CODE_TAG elsif suite_options[:client_type].include?(CLIENT_CREDENTIALS_TAG) CLIENT_CREDENTIALS_TAG end end
def smart_authentication_approach(suite_options)
def smart_authentication_approach(suite_options) if suite_options[:client_type].include?(PUBLIC_TAG) PUBLIC_TAG elsif suite_options[:client_type].include?(CONFIDENTIAL_SYMMETRIC_TAG) CONFIDENTIAL_SYMMETRIC_TAG elsif suite_options[:client_type].include?(CONFIDENTIAL_ASYMMETRIC_TAG) CONFIDENTIAL_ASYMMETRIC_TAG end end