feat: sign up/log in with mastodon

This commit is contained in:
Sam 2023-03-16 15:50:39 +01:00
parent f087e9a29f
commit cf424d3ae4
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
8 changed files with 509 additions and 8 deletions

View file

@ -58,7 +58,7 @@ func (s *Server) noAppFediverseURL(ctx context.Context, w http.ResponseWriter, r
formData := url.Values{
"client_name": {"pronouns.cc (+" + s.BaseURL + ")"},
"redirect_uris": {s.BaseURL + "/auth/login/mastodon"},
"redirect_uris": {s.BaseURL + "/auth/login/mastodon/" + instance},
"scopes": {"read:accounts"},
"website": {s.BaseURL},
}