Sha256: 8b5956792836b2551e973ad46b9580658ada3c46145fd372221bed6bb3be56c4
Contents?: true
Size: 1.63 KB
Versions: 11
Compression:
Stored size: 1.63 KB
Contents
module Auth0 module Api module V1 # {https://auth0.com/docs/api#connections} module Connections # {https://auth0.com/docs/api#!#get--api-connections} def connections get('/api/connections') end alias get_connections connections # {https://auth0.com/docs/api#!#get--api-connections--connection-name-} def connection(connection_name) path = "/api/connections/#{connection_name}" get(path) end alias get_connection connection # {https://auth0.com/docs/api#!#delete--api-connections--connection-name-} def delete_connection(connection_name) path = "/api/connections/#{connection_name}" delete(path) end # {https://auth0.com/docs/api#!#post--api-connections} 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 # {https://auth0.com/docs/api#!#put--api-connections--connection-name-} 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 end end end end
Version data entries
11 entries across 11 versions & 1 rubygems