forked from auth0/ruby-auth0
-
Notifications
You must be signed in to change notification settings - Fork 1
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
V2 #7
Merged
Merged
V2 #7
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
debd5f8
Add before and after steps
72ef22b
Add tickets endpoints, unit and integration tests.
176c64f
Use constant instead of 'Username-Password-Authentication'
c4aa138
Add email provider endpoints, with unit and integration tests.
9cca5ca
Rules endpoint
2d9e461
Enhance clients endpoints and fix tests.
5c2c36c
Add Stats integration tests
8b67e71
Update connections endpoints and unit tests
f2cf974
Add integration test
6d03865
Blacklist endpoints - Add integration tests
9d85272
Tenants Endpoints
b9dd0b6
Review Users endpoints, update to use API v2, add integration and uni…
44e3d86
Skip user_link tests to avoid error on users deletion
4659aa4
Implement Jobs endpoints with unit and integration tests (skipped)
14a40e3
Add Documentation
935d7fa
Skip API V1 Users tests
fbd7ab1
Fix Urls
fb0d8b7
Update Readme.md
3516696
Fix validation messages.
4d9f157
Apply feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bin/ | ||
vendor/ | ||
doc/ | ||
.DS_Store | ||
.ruby-version | ||
coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ rvm: | |
- 2.2.1 | ||
|
||
script: ./build_travis.sh | ||
|
||
after_success: ./deploy_documentation.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# exit with nonzero exit code if anything fails | ||
set -e | ||
|
||
# clear and re-create the out directory | ||
rm -rf doc || exit 0; | ||
mkdir doc; | ||
|
||
# build documentation | ||
bundle exec rake documentation | ||
|
||
# go to the out directory and create a *new* Git repo | ||
cd doc | ||
git init | ||
|
||
# inside this git repo we'll pretend to be a new user | ||
git config user.name "Travis CI" | ||
git config user.email "[email protected]" | ||
|
||
# The first and only commit to this new Git repo contains all the | ||
# files present with the commit message "Deploy to GitHub Pages". | ||
git add . | ||
git commit -m "Deploy to GitHub Pages" | ||
|
||
# Force push from the current repo's master branch to the remote | ||
# repo's gh-pages branch. (All previous history on the gh-pages branch | ||
# will be lost, since we are overwriting it.) We redirect any output to | ||
# /dev/null to hide any sensitive credential data that might otherwise be exposed. | ||
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
require 'auth0/api/v2/clients' | ||
require 'auth0/api/v2/users' | ||
require 'auth0/api/v2/blacklists' | ||
require 'auth0/api/v2/clients' | ||
require 'auth0/api/v2/connections' | ||
require 'auth0/api/v2/emails' | ||
require 'auth0/api/v2/jobs' | ||
require 'auth0/api/v2/rules' | ||
require 'auth0/api/v2/stats' | ||
require 'auth0/api/v2/connections' | ||
require 'auth0/api/v2/users' | ||
require 'auth0/api/v2/tenants' | ||
require 'auth0/api/v2/tickets' | ||
|
||
module Auth0 | ||
module Api | ||
# https://auth0.com/docs/apiv2 | ||
module V2 | ||
include Auth0::Api::V2::Clients | ||
include Auth0::Api::V2::Users | ||
include Auth0::Api::V2::Blacklists | ||
include Auth0::Api::V2::Clients | ||
include Auth0::Api::V2::Connections | ||
include Auth0::Api::V2::Emails | ||
include Auth0::Api::V2::Jobs | ||
include Auth0::Api::V2::Rules | ||
include Auth0::Api::V2::Stats | ||
include Auth0::Api::V2::Connections | ||
include Auth0::Api::V2::Users | ||
include Auth0::Api::V2::Tenants | ||
include Auth0::Api::V2::Tickets | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This format does not match on all validations for the rest of the endpoints. What form should we use: "you must..." or "Must..."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the errors are 'Must....;, so we'll keep this one, but we should change it in clients.rb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed