Skip to content

Commit

Permalink
外部サービスからのアクセス時に、Bootcamp 未ログインの場合はログイン画面にリダイレクトするようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
MikotoMakizuru committed Dec 15, 2024
1 parent 166c119 commit 756b34d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/doorkeeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Doorkeeper.configure do
orm :active_record
resource_owner_authenticator do
current_user || redirect_to(login_path)
end

admin_authenticator do
if current_user
Expand Down

0 comments on commit 756b34d

Please sign in to comment.