owncast/controllers
Gabe Kangas b835de2dc4
IndieAuth support (#1811)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* don't redirect unless a URL is present

avoids redirecting to `undefined` if there was an error

* improve error message if owncast server URL isn't set

* fix IndieAuth PKCE implementation

use SHA256 instead of SHA1, generates a longer code verifier (must be 43-128 chars long), fixes URL-safe SHA256 encoding

* return real profile data for IndieAuth response

* check the code verifier in the IndieAuth server

* Linting

* Add new chat settings modal anad split up indieauth ui

* Remove logging error

* Update the IndieAuth modal UI. For #1273

* Add IndieAuth repsonse error checking

* Disable IndieAuth client if server URL is not set.

* Add explicit error messages for specific error types

* Fix bad logic

* Return OAuth-keyed error responses for indieauth server

* Display IndieAuth error in plain text with link to return to main page

* Remove redundant check

* Add additional detail to error

* Hide IndieAuth details behind disclosure details

* Break out migration into two steps because some people have been runing dev in production

* Add auth option to user dropdown

Co-authored-by: Aaron Parecki <aaron@parecki.com>
2022-04-21 14:55:26 -07:00
..
admin Troubleshoot misskey follows 2022-04-08 13:33:30 -07:00
auth/indieauth IndieAuth support (#1811) 2022-04-21 14:55:26 -07:00
admin.go Fix godoc style comments (#356) 2020-11-12 15:14:59 -08:00
chat.go IndieAuth support (#1811) 2022-04-21 14:55:26 -07:00
config.go IndieAuth support (#1811) 2022-04-21 14:55:26 -07:00
constants.go 0.0.6 -> Master (#731) 2021-02-18 23:05:52 -08:00
controllers.go IndieAuth support (#1811) 2022-04-21 14:55:26 -07:00
embed.go Fix hashes for standalone video/chat (#1472) 2021-10-24 17:12:56 -07:00
emoji.go refactor: move from io/ioutil to io and os packages (#1546) 2021-11-19 22:42:50 -08:00
followers.go Handle pagination for the federated actions & followers responses (#1731) 2022-03-06 17:18:51 -08:00
hls.go Add support for active viewer details API. Closes #1477 (#1747) 2022-03-06 17:31:47 -08:00
index.go Remove references to config file. #1697 2022-01-31 16:01:34 -08:00
logo.go Remove unused var 2022-02-25 15:25:07 -08:00
notifications.go IndieAuth support (#1811) 2022-04-21 14:55:26 -07:00
pagination.go Handle pagination for the federated actions & followers responses (#1731) 2022-03-06 17:18:51 -08:00
ping.go Add support for active viewer details API. Closes #1477 (#1747) 2022-03-06 17:31:47 -08:00
playbackMetrics.go Pull player metrics out of the player. Support safari errors/buffering events 2022-03-29 17:33:36 -07:00
remoteFollow.go Social features / ActivityPub federation (#1629) 2022-01-12 13:53:10 -08:00
status.go Disable caching of some GET apis. Closes #1530 2021-11-16 20:58:50 -08:00
video.go Sort after build variants index number, fix broken index for HLS path. (#1282) 2021-08-04 11:34:02 -07:00