mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
Reddit blocks many server IPs from accessing their `.json` endpoint. This adds optional OAuth support using `client_credentials` flow so authenticated requests go through `oauth.reddit.com`, bypassing IP blocks. - Adds `reddit_onebox_client_id` and `reddit_onebox_client_secret` site settings - Bearer token is cached for 50 minutes (Reddit tokens last 60 min) - Falls back to unauthenticated `www.reddit.com` when credentials are not configured --------- Co-authored-by: Régis Hanol <regis@hanol.fr> |
||
|---|---|---|
| .. | ||
| engine | ||
| domain_checker_spec.rb | ||
| engine_spec.rb | ||
| helpers_spec.rb | ||
| json_ld_spec.rb | ||
| layout_spec.rb | ||
| matcher_spec.rb | ||
| movie_spec.rb | ||
| oembed_spec.rb | ||
| open_graph_spec.rb | ||
| preview_spec.rb | ||
| status_check_spec.rb | ||