Skip to content

Commit

Permalink
working test
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed May 3, 2024
1 parent b0cd37d commit 12dd899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
- BEARER_TOKEN="TG9yZCBvZiB0aGUgUmluZ3MK"
- BEARER_TOKEN=TG9yZCBvZiB0aGUgUmluZ3MK
- DATABASE_URL=mysql2://lauth:[email protected]:3306/lauth_demo
hostname: app.lauth.local
networks:
Expand Down
2 changes: 1 addition & 1 deletion lauth/app/actions/authorize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Authorize < Lauth::Action
def handle(request, response)
response.format = :json

if request.has_header?("Authorization") && request.get_header("Authorization") == "Bearer " + App.app["settings"].bearer_token
if request.has_header?("HTTP_AUTHORIZATION") && request.get_header("HTTP_AUTHORIZATION") == "Bearer " + App.app["settings"].bearer_token
result = Lauth::Ops::Authorize.new(
request: Lauth::Access::Request.new(
user: request.params[:user],
Expand Down

0 comments on commit 12dd899

Please sign in to comment.