Alex Gleason
45b7325b9e
Refactor skipped plugs into Pleroma.Web functions
Speeds up recompilation by reducing compile cycles
3 лет назад
Alex Gleason
51a9f97e87
Deprecate Pleroma.Web.base_url/0
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
3 лет назад
Alex Gleason
c23b81e399
Pleroma.Web.get_api_routes/0 --> Pleroma.Web.Router.get_api_routes/0
Reduce recompilation time by breaking compile-time cycles
3 лет назад
Alex Gleason
07fed0fda2
Switch to aliasing `Router.Helpers` instead of importing
3 лет назад
Mark Felder
76b166f040
Note our upgrade path for this functionality
3 лет назад
Mark Felder
2da71a526f
No need to filter out Mix.env() from the API routes.
3 лет назад
Mark Felder
6b87dfad5d
Filter out MIX_ENV from route list and add a test
3 лет назад
Mark Felder
8ad1613717
Enum instead of Stream
3 лет назад
Mark Felder
cea31df6a6
Attempt to filter out API calls from FrontendStatic plug
3 лет назад
Haelwenn (lanodan) Monnier
c4439c630f
Bump Copyright to 2021
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/ >;'
3 лет назад
Ivan Tashkinov
e9859b68fc
[ #3112 ] Ensured presence and consistency of :user and :token assigns (EnsureUserTokenAssignsPlug). Refactored auth info dropping functions.
3 лет назад
feld
6c8469664a
Merge branch 'chore/elixir-1.11' into 'develop'
Elixir 1.11 compatibility / Phoenix 1.5+
See merge request pleroma/pleroma!3059
3 лет назад
Alexander Strizhakov
c6baa811d6
EnsureAuthenticatedPlug module name
4 лет назад
Alexander Strizhakov
011525a3d1
EnsurePublicOrAuthenticatedPlug module name
4 лет назад
Alexander Strizhakov
d6cb1a3b46
ExpectAuthenticatedCheckPlug module name
4 лет назад
Alexander Strizhakov
99e4ed21b1
ExpectPublicOrAuthenticatedCheckPlug module name
4 лет назад
Alexander Strizhakov
a6d8cef33e
OAuthScopesPlug module name
4 лет назад
Alexander Strizhakov
15772fda57
PlugHelper module name
4 лет назад
Alexander Strizhakov
fc7151a9c4
more files renamings
4 лет назад
Mark Felder
8156940a49
Compatibility with phoenix_pubsub 2.0.0
3 лет назад
Ivan Tashkinov
862d4886c9
[ #1682 ] Fixed Basic Auth permissions issue by disabling OAuth scopes checks when password is provided. Refactored plugs skipping functionality.
4 лет назад
rinpatch
da4923f2e5
Merge branch 'authenticated-api-oauth-check-enforcement' into 'develop'
Enforcement of OAuth scopes check for authenticated API endpoints
See merge request pleroma/pleroma!2349
4 лет назад
Ivan Tashkinov
2c4844237f
Refactoring of :if_func / :unless_func plug options (general availability). Added tests for Pleroma.Web.Plug.
4 лет назад
Ivan Tashkinov
89f38d94c7
[ #2409 ] Fixed before-action callback results persistence.
4 лет назад
Ivan Tashkinov
2958a7d246
Fixed OAuth restrictions for :api routes. Made auth info dropped for :api routes if OAuth check was neither performed nor explicitly skipped.
4 лет назад
Ivan Tashkinov
f685cbd309
Automatic checks of authentication / instance publicity. Definition of missing OAuth scopes in AdminAPIController. Refactoring.
4 лет назад
Ivan Tashkinov
66f55106bd
[ #1682 ] Fixed Basic Auth permissions issue by disabling OAuth scopes checks when password is provided. Refactored plugs skipping functionality.
4 лет назад
Ivan Tashkinov
bde1189c34
[ #2349 ] Made :skip_plug/2 prevent plug from being executed even if explicitly called. Refactoring. Tests.
4 лет назад
Ivan Tashkinov
fc81e5a49c
Enforcement of OAuth scopes check for authenticated API endpoints, :skip_plug plug to mark a plug explicitly skipped (disabled).
4 лет назад
Mark Felder
05da5f5cca
Update Copyrights
4 лет назад
rinpatch
43f02dfe38
Revert "Parallelize template rendering"
This reverts commit 1ad71592ad
.
Since it had no limit on the number on concurrent processes it OOM killed
instances while rendering hellthreads. When I tried introducing a
concurrency limit with Task.async_stream/manual folds it lead to about 3 times
worse performance on threads larger than 1000 activities (we are talking
30s vs 1.2 minutes), I think this is not worth the about 1.5 times
performance increase on smaller threads when using it.
4 лет назад
rinpatch
1ad71592ad
Parallelize template rendering
4 лет назад
rinpatch
46d7bef7e7
Nicer formatting for safe_render errors
4 лет назад
Egor Kislitsyn
26a6871609
Add translation helpers
4 лет назад
Ivan Tashkinov
b6f915313f
Made auth customization be runtime-configurable.
5 лет назад
Ivan Tashkinov
afddce45b3
Minor setting name adjustment (:app_template -> :app_layout).
5 лет назад
Ivan Tashkinov
1097ce6d9f
Auth customization support.
OAuthController#create_authorization user retrieval / creation, errors handling, template & layout selection.
5 лет назад
Haelwenn (lanodan) Monnier
d924dc73ba
de-group import/s
5 лет назад
Haelwenn (lanodan) Monnier
2272934a5e
Stash
5 лет назад
href
f83bae7c22
Views: wrap activity rendering in a rescue
this avoids complete timeline breakage when an activity fucks up
rendering.
5 лет назад
William Pitcock
980b5288ed
update copyright years to 2019
5 лет назад
William Pitcock
2791ce9a1f
add license boilerplate to pleroma core
5 лет назад
lain
4afbef39f4
Format the code.
6 лет назад
Roger Braun
8141024259
Attachment parsing, better magic key fetching.
7 лет назад
dtluna
6cf7c13228
Refactor code to comply with credo suggestions
7 лет назад
Roger Braun
ce6cc84a4a
Add basic webfinger.
7 лет назад
Roger Braun
d18473f0c3
Add port if specified.
7 лет назад
Roger Braun
a93f3421a7
Phoenix skeleton
7 лет назад