Module: BetterAuth::SSO::Client
- Defined in:
- lib/better_auth/sso/client.rb
Constant Summary collapse
- ID =
"sso-client"- PATH_METHODS =
{ "/sso/providers" => "GET", "/sso/get-provider" => "GET" }.freeze
Class Method Summary collapse
Class Method Details
.sso_client(options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/better_auth/sso/client.rb', line 14 def sso_client( = {}) domain_verification = [:domain_verification] || ["domainVerification"] || ["domain_verification"] || {} enabled = domain_verification[:enabled] || domain_verification["enabled"] || false { id: ID, version: VERSION, infer_server_plugin: { domain_verification: { enabled: !!enabled } }, path_methods: PATH_METHODS } end |