mirror of
1
Fork 0
gotosocial/internal
Forest Johnson 6ed368cbeb
[feature] add authorization to the already-existing authentication (#365)
* add ensureUserIsAuthorizedOrRedirect to /oauth/authorize

* adding authorization (email confirm, account approve, etc) to TokenCheck

* revert un-needed changes to signin.go

* oops what happened here

* error css

* add account.SuspendedAt check

* remove redundant checks from oauth util Authed function

* wip tests

* tests passing

* stop stripping useful information from ErrAlreadyExists

* that feeling of scraping the dryer LINT off the screen

* oops I didn't mean to get rid of this NewTestRouter function

* make tests work with recorder

* re-add ConfigureTemplatesWithGin to handle template path err

Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
2022-02-07 12:04:31 +01:00
..
ap Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
api [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
cache Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
config [feature] Make Let's Encrypt integration an opt-in feature (#368) 2022-01-30 14:57:33 +01:00
db [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
email [bug] Send plaintext emails to fix "message refused: Message is not RFC 2822 compliant" (#366) 2022-01-31 11:46:20 +01:00
federation [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
gotosocial Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
gtserror Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
gtsmodel [feature] Rework timeline code to make it useful for more than just statuses (#373) 2022-02-05 12:47:38 +01:00
id change muchos things 2021-09-01 11:11:26 +02:00
log Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
media Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
messages Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
oauth [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
oidc Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
processing [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
regexes Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
router [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
stream Fix streamed messages ending up in wrong timeline(s) (#325) 2021-11-22 19:03:21 +01:00
text Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline [feature] Rework timeline code to make it useful for more than just statuses (#373) 2022-02-05 12:47:38 +01:00
trans Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
typeutils if accountDomain isn't set, use Host value instead (#380) 2022-02-06 14:07:38 +01:00
uris Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
util Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
validate Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
visibility Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
web Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00