module Auth0::Api::V1::Connections
Public Instance Methods
connection(connection_name)
click to toggle source
{auth0.com/docs/api#!#get–api-connections–connection-name-}
# File lib/auth0/api/v1/connections.rb, line 13 def connection(connection_name) path = "/api/connections/#{connection_name.to_s}" get(path) end
Also aliased as: get_connection
connections()
click to toggle source
{auth0.com/docs/api#!#get–api-connections}
# File lib/auth0/api/v1/connections.rb, line 7 def connections get("/api/connections") end
Also aliased as: get_connections
create_connection(connection_name, strategy, tenant_domain, domain_aliases=nil)
click to toggle source
{auth0.com/docs/api#!#post–api-connections}
# File lib/auth0/api/v1/connections.rb, line 26 def create_connection(connection_name, strategy, tenant_domain, domain_aliases=nil) path = "/api/connections" request_params = { name: connection_name, strategy: strategy, options: { tenant_domain: tenant_domain, domain_aliases: domain_aliases } } post(path, request_params) end
delete_connection(connection_name)
click to toggle source
{auth0.com/docs/api#!#delete–api-connections–connection-name-}
# File lib/auth0/api/v1/connections.rb, line 20 def delete_connection(connection_name) path = "/api/connections/#{connection_name.to_s}" delete(path) end
update_connection(connection_name, tenant_domain, status=true)
click to toggle source
{auth0.com/docs/api#!#put–api-connections–connection-name-}
# File lib/auth0/api/v1/connections.rb, line 39 def update_connection(connection_name, tenant_domain, status=true) path = "/api/connections/#{connection_name}" request_params = { status: status, options: { tenant_domain: tenant_domain } } put(path, request_params) end