Skip to content

Commit

Permalink
Fix require
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasjpr committed Oct 11, 2024
1 parent 5133932 commit 1ef3e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/authly/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/authly/handlers/authorization_handler.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "http/server/handler"
require "URI"
require "uri"

module Authly
class AuthorizationHandler
Expand Down

0 comments on commit 1ef3e5d

Please sign in to comment.