Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

フロントの開発サーバーからバックエンドの本番サーバーにアクセスできるようにする #93

Open
PigeonsHouse opened this issue May 29, 2022 · 1 comment
Labels
development environment 開発環境 new request 新しい要求

Comments

@PigeonsHouse
Copy link
Collaborator

開発中のフロントから本番サーバーのログインができるように,

  1. /api/v1/discord?front_url={localhostとかフロントのURL}みたいに送る
  2. discordのAPIのURLのクエリに&scope={1で使ったフロントURL}を付け加える
  3. /api/v1/discord/callback?front_url={さっきの}に返ってくる
  4. クエリがあればリダイレクト先をそちらに変える
    という処理を追加しておく.
@rkun123
Copy link
Contributor

rkun123 commented Jun 15, 2022

scopeじゃなくてstateかも
https://discord.com/developers/docs/topics/oauth2#state-and-security

@Simo-C3 Simo-C3 added development environment 開発環境 new request 新しい要求 labels Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development environment 開発環境 new request 新しい要求
Projects
None yet
Development

No branches or pull requests

3 participants