diff --git a/src/authly/client.cr b/src/authly/client.cr index b0f782f..7051e84 100644 --- a/src/authly/client.cr +++ b/src/authly/client.cr @@ -48,7 +48,7 @@ module Authly def allowed_scopes?(client_id, scopes) : Bool the_client = self.find! { |client| client.id == client_id } - return false unless client + return false unless the_client the_client.scopes.split(" ").all? do |scope| scopes.split(" ").includes?(scope) diff --git a/src/authly/handlers/authorization_handler.cr b/src/authly/handlers/authorization_handler.cr index 4b87f63..6239b51 100644 --- a/src/authly/handlers/authorization_handler.cr +++ b/src/authly/handlers/authorization_handler.cr @@ -1,5 +1,5 @@ require "http/server/handler" -require "URI" +require "uri" module Authly class AuthorizationHandler