Skip to content

Commit 8614b83

Browse files
authored
fix: clarify action to ensure OAuth callback legitimacy (#44)
1 parent 7acfdce commit 8614b83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rfc/oauth-login.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ The OAuth callback URL might be `/oauth/github/callback`. The handler for which
4747

4848
When claiming the delegation the client will create a local account using the `did:mailto` in the attestation.
4949

50+
Note: In order to ensure the request to the OAuth callback is legitimate, the primary verified email address mentioned above MUST be obtained by making an authorized request to the OAuth provider using the `code` communicated to the callback (paired with the OAuth client secret).
51+
5052
## Appendix
5153

5254
The idea for this is to allow a _trial_ plan to be assumed by new logins. The OAuth callback will, before invoking `access/claim` create a customer in the system, and set their plan to `did:web:trial.storacha.network`.

0 commit comments

Comments
 (0)