Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for API V1 and API V2 #9

Merged
merged 8 commits into from
Mar 10, 2015
Merged

Added support for API V1 and API V2 #9

merged 8 commits into from
Mar 10, 2015

Conversation

offtop
Copy link
Contributor

@offtop offtop commented Jan 28, 2015

Added next actions for client

clients
create_client(name, callbacks="")
update_client(name, callbacks="", client_id=@client_id)
patch_client(name, callbacks="", client_id=@client_id)
connections
connection(connection_name)
delete_connection(connection_name)
create_connection(connection_name, strategy, tenant_domain, domain_aliases=nil)
update_connection(connection_name, tenant_domain, status=true)
logs(options={})
log(id)
user_logs(user_id, page=0, per_page=50)
rules
create_rule(name, script, order=nil,status=true)
update_rule(name, script, order=nil,status=true)
delete_rule(name)
users(search=nil)
user(user_id)
user_devices(user_id)
connection_users(connection_name, search=nil)
enterpriseconnections_users(search_criteria=nil, per_page=500)
socialconnections_users(search_criteria=nil, per_page=500)
client_users(client_id=@client_id)
create_user(email, password, connection_name, request_params={})
send_verification_email(user_id)
change_password_ticket(user_id, new_password, result_url=nil)
verification_ticket(user_id, result_url=nil)
create_public_key(user_id, device, public_key)
update_user_email(user_id, email, verify=true)
update_user_metadata(user_id, metadata={})
update_user_password(user_id, password, verify=true)
update_user_password_using_email(email, password, connection_name, verify=true)
patch_user_metadata(user_id, metadata={})
delete_users
delete_user(user_id)
revoke_user_refresh_token(user_id, refresh_token)
revoke_user_device_public_key(user_id, device)
obtain_access_token
delegation(id_token, target, scope = "open_id")
login(username, password, scope = "openid", id_token=nil, connection_name="Username-Password-Authentication")
signup(email, password, connection_name= "Username-Password-Authentication")
change_password(email, password, connection_name = "Username-Password-Authentication")
token_info(id_token)

added test coverage(unit testing only), added some basic documentation. Updated outdated gems.
Compatible to ruby v1.9.3 and higher.

Added support for V2,
to enable v2 in options pass parameter: protocol: "v2"
only creating a job is not implemented, cause HTTParty doesn't support multipart messages.

blacklisted_tokens
add_token_to_blacklist
clients
client
create_client
delete_client
patch_client
get_job
daily_stats
active_users
daily_stats
users
user
create_user
delete_users
delete_user
delete_user_provider
patch_user

@jfromaniello
Copy link
Member

This is an awesome pull request, and I am very thankful for taking this library to the next level.

I'd like to send you a gift, please contact us at [email protected] with your details if possible.

Regarding the change, thanks again for adding all the methods with tests. Removing the "examples" folder is spot on since it belongs to another project omniauth0-auth0.

@mgonto can you take care of moving examples to omniauth0-auth0?

This was referenced Feb 13, 2015
@offtop
Copy link
Contributor Author

offtop commented Feb 22, 2015

I hope one day it will be merged.

@offtop offtop changed the title Added Api calls for API V1 Added Api calls for API V1 and API V2 Feb 22, 2015
@offtop offtop changed the title Added Api calls for API V1 and API V2 Added support for API V1 and API V2 Feb 22, 2015
@jfromaniello jfromaniello merged commit 69d0bee into auth0:master Mar 10, 2015
@jfromaniello
Copy link
Member

Thank you very much for your awesome work, and sorry for the long delay.

I've published this as v3.0.0.

@dschenkelman
Copy link
Member

Just in case, the email is [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants