Commit graph

268 commits

Author SHA1 Message Date
Tobi Smethurst
71a49e2b43
Api/v1/accounts (#8)
* start work on accounts module

* plodding away on the accounts endpoint

* groundwork for other account routes

* add password validator

* validation utils

* require account approval flags

* comments

* comments

* go fmt

* comments

* add distributor stub

* rename api to federator

* tidy a bit

* validate new account requests

* rename r router

* comments

* add domain blocks

* add some more shortcuts

* add some more shortcuts

* check email + username availability

* email block checking for signups

* chunking away at it

* tick off a few more things

* some fiddling with tests

* add mock package

* relocate repo

* move mocks around

* set app id on new signups

* initialize oauth server properly

* rename oauth server

* proper mocking tests

* go fmt ./...

* add required fields

* change name of func

* move validation to account.go

* more tests!

* add some file utility tools

* add mediaconfig

* new shortcut

* add some more fields

* add followrequest model

* add notify

* update mastotypes

* mock out storage interface

* start building media interface

* start on update credentials

* mess about with media a bit more

* test image manipulation

* media more or less working

* account update nearly working

* rearranging my package ;) ;) ;)

* phew big stuff!!!!

* fix type checking

* *fiddles*

* Add CreateTables func

* account registration flow working

* tidy

* script to step through auth flow

* add a lil helper for generating user uris

* fiddling with federation a bit

* update progress

* Tidying and linting
2021-04-01 20:46:45 +02:00
Tobi Smethurst
aa9ce272dc
Oauth/token (#7)
* add host and protocol options

* some fiddling

* tidying up and comments

* tick off /oauth/token

* tidying a bit

* tidying

* go mod tidy

* allow attaching middleware to server

* add middleware

* more user friendly

* add comments

* comments

* store account + app

* tidying

* lots of restructuring

* lint + tidy
2021-03-22 22:26:54 +01:00
tsmethurst
4e281f31b0 whole buncha stuff 2021-03-15 23:05:24 +01:00
tsmethurst
cca676dcb3 tests 2021-03-15 18:59:38 +01:00
tsmethurst
1eecc2688c bit of experimenting and tidying 2021-03-15 16:15:14 +01:00
tsmethurst
772f6e5949 start working on oauth2 implementation 2021-03-14 17:56:16 +01:00
tsmethurst
9a79d176c9 moving stuff around, stubbing interfaces 2021-03-09 17:03:40 +01:00
tsmethurst
338af00e7b add note struct 2021-03-08 22:37:56 +01:00
tsmethurst
cd39566f5f tiny experiments 2021-03-07 22:03:36 +01:00
tsmethurst
ac9c6b6251 tiny bit of moving around 2021-03-07 13:05:33 +01:00
tsmethurst
59963090cb create db schemas for accounts 2021-03-05 18:31:12 +01:00
tsmethurst
052783db66 tidying up here and there 2021-03-04 14:38:18 +01:00
tsmethurst
baa2cbcca3 Merge branch 'main' of github.com:gotosocial/server into main 2021-03-04 12:08:17 +01:00
tsmethurst
645ea31856 Move some consts around 2021-03-04 12:07:24 +01:00
tsmethurst
18d0685ef1 further fun 2021-03-03 21:15:20 +01:00
tsmethurst
54c4b8de20 further yak shaving 2021-03-03 18:12:02 +01:00
tsmethurst
be1b631681 More messing around 2021-03-02 22:52:31 +01:00
tsmethurst
d8e8d44d47 start implementing db interface 2021-03-02 18:26:30 +01:00