Module: Panda::Core::OAuthProviders
- Defined in:
- lib/panda/core/oauth_providers.rb
Class Method Summary collapse
Class Method Details
.setup ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/panda/core/oauth_providers.rb', line 4 def self.setup providers = [] begin require "omniauth-github" providers << :github rescue LoadError # GitHub OAuth functionality not available end begin require "omniauth-google-oauth2" providers << :google_oauth2 rescue LoadError # Google OAuth functionality not available end begin require "omniauth-microsoft_graph" providers << :microsoft_graph rescue LoadError # Microsoft OAuth functionality not available end providers end |