Sha256: cba97fe9be394f31c7e8f71464214c3860a3d66950fe5c875c72de837ed6d9d6
Contents?: true
Size: 1.64 KB
Versions: 4
Compression:
Stored size: 1.64 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.to_s}" 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.to_s}" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
auth0-3.6.1 | lib/auth0/api/v1/connections.rb |
auth0-3.6.0 | lib/auth0/api/v1/connections.rb |
auth0-3.5.0 | lib/auth0/api/v1/connections.rb |
auth0-3.4.0 | lib/auth0/api/v1/connections.rb |