Skip to content

dentarg/ruby-auth0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby client for Auth0

This used to be the omniauth strategy for Auth0 but now is a client for the Auth0 api. The omniauth strategy has been moved to omniauth-auth0.

Installation

$ gem install auth0

Basic usage

require "auth0"

auth0 = Auth0Client.new(
  :client_id => "YOUR CLIENT ID",
  :client_secret => "YOUR CLIENT SECRET",
  :namespace => "<YOUR ACCOUNT>.auth0.com"
);

puts auth0.get_connections;

Using APIv2

require "auth0"

auth0 = Auth0Client.new(
  :api_version => 2,
  :token => "YOUR JWT HERE"
);

puts auth0.get_users;

License

MIT 2014 - Auth0 INC.

About

Ruby client for Auth0

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%