code-corps / code-corps/code-corps-api

Add GitHub authentication

未關閉
#7 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Elixir
星號
234
分支
82
PR 合併指標
30 天內沒有已合併 PR

描述

We should allow users to integrate their GitHub account into their current account.

Some quick thoughts around this:

- We need to be able to associate most records (like `Comment` and `Task`) to a `User` that created them
- A `User` could be created by signing up with email, but could also be created via webhooks by some action on GitHub (or some other service)
- We can’t assume a user has an email associated with their account (GitHub may not provide this)
- Emails should be broken off as separate identity providers
- A GitHub account is also an identity provider
- When a user was created due to an external identity provider (claimed vs unclaimed), that user can be merged
- Merging will copy all relevant data from that user to the new user
- We probably need to punt on a user signing up / signing in with GitHub – they can only connect an account later – otherwise we could have a scenario where someone _intends_ to connect a Code Corps account to a GitHub account, but instead creates two separate accounts (one via email, one via GitHub) that are now disconnected. This would mean we'd have to some complex two-step verification process for a merge, which is beyond the scope of MVP here.

貢獻指南

開啟貢獻指南

研究方向

未指定任何檔案、測試或進入點。首先整理現有的 User、Comment 和 Task 模型以及驗證流程,接著定義連結 GitHub 身分的最小約定範圍;完成的標準是已有獲批准的設計以及相應的帳戶關聯行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
elixir, github
領域
authentication, backend-api-design
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。