mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
1a8fee11a0
In this case, the auth provider is acting as a SSO provider, and can be trusted to maintain its own CSRF protections.
10 lines
243 B
Ruby
10 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "openssl"
|
|
require "openid_redis_store"
|
|
|
|
require "middleware/omniauth_bypass_middleware"
|
|
Rails.application.config.middleware.use Middleware::OmniauthBypassMiddleware
|
|
|
|
OmniAuth.config.logger = Rails.logger
|