b835de2dc4
* 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>
79 lines
2.8 KiB
Modula-2
79 lines
2.8 KiB
Modula-2
module github.com/owncast/owncast
|
|
|
|
go 1.17
|
|
|
|
require (
|
|
github.com/amalfra/etag v1.0.0
|
|
github.com/aws/aws-sdk-go v1.43.43
|
|
github.com/go-fed/activity v1.0.1-0.20210803212804-d866ba75dd0f
|
|
github.com/go-fed/httpsig v1.1.0
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/gorilla/websocket v1.5.0
|
|
github.com/grafov/m3u8 v0.11.1
|
|
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
|
|
github.com/mattn/go-sqlite3 v1.14.12
|
|
github.com/microcosm-cc/bluemonday v1.0.18
|
|
github.com/mssola/user_agent v0.5.3
|
|
github.com/nareix/joy5 v0.0.0-20210317075623-2c912ca30590
|
|
github.com/oschwald/geoip2-golang v1.7.0
|
|
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
|
|
github.com/schollz/sqlite3dump v1.3.1
|
|
github.com/sirupsen/logrus v1.8.1
|
|
github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125
|
|
github.com/yuin/goldmark v1.4.11
|
|
golang.org/x/mod v0.5.1
|
|
golang.org/x/time v0.0.0-20220411224347-583f2d630306
|
|
mvdan.cc/xurls v1.1.0
|
|
)
|
|
|
|
require (
|
|
github.com/jonboulle/clockwork v0.2.2 // indirect
|
|
github.com/lestrrat-go/strftime v1.0.4 // indirect
|
|
github.com/mvdan/xurls v1.1.0 // indirect
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/tklauser/go-sysconf v0.3.10 // indirect
|
|
github.com/tklauser/numcpus v0.4.0 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.2 // indirect
|
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
|
|
golang.org/x/net v0.0.0-20220420153159-1850ba15e1be
|
|
golang.org/x/sys v0.0.0-20220325203850-36772127a21f // indirect
|
|
)
|
|
|
|
require github.com/prometheus/client_golang v1.12.1
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/prometheus/client_model v0.2.0 // indirect
|
|
github.com/prometheus/common v0.32.1 // indirect
|
|
github.com/prometheus/procfs v0.7.3 // indirect
|
|
golang.org/x/text v0.3.7 // indirect
|
|
google.golang.org/protobuf v1.26.0 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/nakabonne/tstorage v0.3.5
|
|
github.com/shirou/gopsutil/v3 v3.22.3
|
|
)
|
|
|
|
require github.com/SherClockHolmes/webpush-go v1.2.0
|
|
|
|
require (
|
|
github.com/aymerick/douceur v0.2.0 // indirect
|
|
github.com/dghubble/oauth1 v0.7.1
|
|
github.com/g8rswimmer/go-twitter v1.1.5-0.20220129031223-e62b74626b0a
|
|
github.com/go-test/deep v1.0.4 // indirect
|
|
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
|
github.com/gorilla/css v1.0.0 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.9.0 // indirect
|
|
)
|
|
|
|
require github.com/andybalholm/cascadia v1.3.1
|
|
|
|
replace github.com/go-fed/activity => github.com/owncast/activity v1.0.1-0.20211229051252-7821289d4026
|