A very basic Flask server that prompts the user for an instance domain, sends them through authentication flow, then displays a bare bones home timeline view. Basically just a proof of concept, feel free to use it for whatever you like.
Go to file
Ada Werefox 6b2347768b Final commit. This is as good as it'll get, and as much effort as I'm willing to put into this. It was fun! 2023-02-25 22:33:39 +00:00
app Final commit. This is as good as it'll get, and as much effort as I'm willing to put into this. It was fun! 2023-02-25 22:33:39 +00:00
.gitignore Initial commit. 2023-02-19 16:28:53 -06:00
Dockerfile Added a container option for deployment, since that's what I'll be doing. Added requests library to requirements. Authentication flow now happens with a form submission of an instance domain. 2023-02-23 00:08:18 +00:00
LICENSE Final commit. This is as good as it'll get, and as much effort as I'm willing to put into this. It was fun! 2023-02-25 22:33:39 +00:00
README.md Final commit. This is as good as it'll get, and as much effort as I'm willing to put into this. It was fun! 2023-02-25 22:33:39 +00:00
deploy.sh Final commit. This is as good as it'll get, and as much effort as I'm willing to put into this. It was fun! 2023-02-25 22:33:39 +00:00
docker-compose.yml Authentication redirect sends user to a makeshift homepage json output as a placeholder. 2023-02-23 05:28:41 +00:00
requirements.txt Added a container option for deployment, since that's what I'll be doing. Added requests library to requirements. Authentication flow now happens with a form submission of an instance domain. 2023-02-23 00:08:18 +00:00

README.md

GoToSocial FE Example

Here's a really rough Flask project to demonstrate OAuth flow for GoToSocial.

All this will do is prompt the user for an instance domain, send them through the authentication flow, then drop them on a very basic homepage view.

Don't expect any updates from this, I'm scrapping the project in favor of using something different. This is just to serve as an example of how one might do this. Feel free to fork or clone the code for yourself to use in whatever you like.

Usage

./deploy.sh development or ./deploy.sh production to run the Flask server.