Skip to content

Chrome拡張からbootcampのログイン状態を確認するためのAPIエンドポイントを追加#9858

Open
Miya096jp wants to merge 2 commits intofeature/redesign-buzzes-pagefrom
feature/add-login-check-to-api-buzz-endpoint
Open

Chrome拡張からbootcampのログイン状態を確認するためのAPIエンドポイントを追加#9858
Miya096jp wants to merge 2 commits intofeature/redesign-buzzes-pagefrom
feature/add-login-check-to-api-buzz-endpoint

Conversation

@Miya096jp
Copy link
Copy Markdown
Contributor

@Miya096jp Miya096jp commented Mar 30, 2026

Issue

#9734

概要

bootcampのログイン状態に応じて、Chrome拡張のpopup表示を次のように分岐する予定:

  • adminかmentorでbootcampにログイン済みであれば通常のpopup表示
  • そうでない場合は、bootcampのログインページへのリンクを表示

動作確認

3つのパターンの確認をお願いします。

curl -I -b "_bootcamp_session="<cookieを貼り付け>" http://localhost:3000/api/buzz/auth_status
  1. komagataでログインして
    => HTTP/1.1 200 OK
  2. hatsunoでログインして
    => HTTP/1.1 403 Forbidden
  3. ログアウト状態で
    => HTTP/1.1 401 Unauthorized

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 30, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 058e1bc5-0fb3-45ea-bb40-56f915d72a47

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/add-login-check-to-api-buzz-endpoint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Miya096jp Miya096jp force-pushed the feature/add-login-check-to-api-buzz-endpoint branch from d0beef6 to 3b0cc7c Compare March 30, 2026 03:20
@Miya096jp Miya096jp force-pushed the feature/add-login-check-to-api-buzz-endpoint branch from 3b0cc7c to 6303c3f Compare March 30, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant