-
Notifications
You must be signed in to change notification settings - Fork 136
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
Release 4.1.0 #71
Merged
Merged
Release 4.1.0 #71
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
319066a
Change rubocop configuration
4b288ea
Fix Rubocop issues
d1b72ed
Resource Servers Endpoint
71f0e83
Ignore unlink user test
2cea1fb
Add unit test for resource servers name
4173eae
Logs Endpoint Documentation Review
fleko 3f717a4
Add wait helper + Refactor logs unit tests
deb193b
Update Rubocop
85ceaa3
Add spec for log method to validate the log_id
ede23b3
Change exception type to InvalidParameter
e70e241
API endpoints review
fleko a176a02
Add user_logs method to users endpoint
fleko 79dc00e
Fix for send_verification_email issue
fleko f7e06a1
Rubocop fixes v0.40.0
fleko a017ff7
Add checks for per_page and sort parameters
fleko b1662be
Add client grants endpoints with corresponding unit and integration t…
fleko 0d23fd3
Add User Blocks endpoints
78a01ed
Block user before each user_blocks integration test
e8ba5dc
Allow httparty_proxy delete method to support query strings
892ad46
Refactor user_blocks get and delete to use httproxy methods
28ff64b
Add Device Credentials endpoints and tests
fleko 297cc9a
Fix Rubocop Issues
24d278d
Updated address
jgelsey 6ce9479
Migrate from HTTParty to rest-client.
1c4bf7a
Add Rack version to the Gem file
aa57e52
Fix Impersonate method
b95b598
Add Integration Test to Authentication Endpoints - Impersonate
7c83f7a
Refactor tests to use the new proxy
4ed483d
Default API v2
6fbf4d2
Fix response type in Authorization Endpoints
47fc48b
Add authentication integration tests.
e768f79
Fix Rubocop Issues + Unit Tests
fb9be6f
adds obtain_user_token method to authentication endpoints
fleko 89bb6a4
Fix authorization url parameter name error in unit tests
fleko 46c38cf
Merge remote-tracking branch 'upstream/master'
7a09853
Add timeout example to Readme.md
9507df4
Fix ticket endpoint with mandatory password.
1c4e820
Fix ticket endpoint with mandatory password.
ignaciojonas 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
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,7 +1,5 @@ | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 15 | ||
|
||
# Configuration parameters: AllowURI, URISchemes. | ||
Metrics/LineLength: | ||
Max: 121 |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ source 'http://rubygems.org' | |
# gem "rails" | ||
gem 'sinatra', '~> 1.4' | ||
gem 'jwt', '~> 1.5' | ||
gem 'dotenv' | ||
gem 'dotenv' |
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,2 +1,2 @@ | ||
require './main' | ||
run Sinatra::Application | ||
run Sinatra::Application |
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
1 change: 1 addition & 0 deletions
1
examples/ruby-on-rails-api/app/controllers/application_controller.rb
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,3 +1,4 @@ | ||
# Application Controller | ||
class ApplicationController < ActionController::Base | ||
include Knock::Authenticable | ||
|
||
|
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,7 +1,6 @@ | ||
# Ping Controller | ||
class PingController < ApplicationController | ||
|
||
def ping | ||
render text: "All good. You don't need to be authenticated to call this" | ||
end | ||
|
||
end |
10 changes: 5 additions & 5 deletions
10
examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
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,11 +1,11 @@ | ||
# Secured ping Controller | ||
class SecuredPingController < ApplicationController | ||
before_action :authenticate | ||
|
||
def ping | ||
render :json => { | ||
:message => "All good. You only get this message if you're authenticated.", | ||
:user => @current_user | ||
} | ||
render json: { | ||
message: "All good. You only get this message if you're authenticated.", | ||
user: @current_user | ||
} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Application Helper | ||
module ApplicationHelper | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
require ::File.expand_path('../config/environment', __FILE__) | ||
run Rails.application |
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
2 changes: 1 addition & 1 deletion
2
examples/ruby-on-rails-api/config/initializers/cookies_serializer.rb
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,3 +1,3 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.action_dispatch.cookies_serializer = :json | ||
Rails.application.config.action_dispatch.cookies_serializer = :json |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
require 'test_helper' | ||
|
||
# Ping Controller Tests | ||
class PingControllerTest < ActionController::TestCase | ||
|
||
test 'responds with success' do | ||
get :ping | ||
assert_response :success | ||
end | ||
|
||
end |
3 changes: 1 addition & 2 deletions
3
examples/ruby-on-rails-api/test/secured_ping_controller_test.rb
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
ENV['RAILS_ENV'] ||= 'test' | ||
require File.expand_path('../../config/environment', __FILE__) | ||
require 'rails/test_help' | ||
# Active Support | ||
class ActiveSupport | ||
# Test Case | ||
class TestCase | ||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. | ||
# | ||
# Note: You'll currently still have to declare fixtures explicitly in integration tests | ||
# -- they do not yet inherit this setting | ||
fixtures :all | ||
|
||
class ActiveSupport::TestCase | ||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. | ||
# | ||
# Note: You'll currently still have to declare fixtures explicitly in integration tests | ||
# -- they do not yet inherit this setting | ||
fixtures :all | ||
|
||
# Add more helper methods to be used by all tests here... | ||
# Add more helper methods to be used by all tests here... | ||
end | ||
end |
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 is probably seconds, not minutes, right?