forked from External/greenlight
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			v2
			...
			translatio
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					00f470b1d0 | ||
| 
						 | 
					1296d0657f | ||
| 
						 | 
					3b7b45cc03 | 
							
								
								
									
										1
									
								
								Gemfile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Gemfile
									
									
									
									
									
								
							@@ -50,6 +50,7 @@ gem 'sprockets', '< 4.0.0'
 | 
				
			|||||||
gem 'omniauth'
 | 
					gem 'omniauth'
 | 
				
			||||||
gem 'omniauth-twitter'
 | 
					gem 'omniauth-twitter'
 | 
				
			||||||
gem 'omniauth-google-oauth2'
 | 
					gem 'omniauth-google-oauth2'
 | 
				
			||||||
 | 
					gem 'omniauth_openid_connect'
 | 
				
			||||||
gem 'omniauth-bn-launcher', '~> 0.1.3'
 | 
					gem 'omniauth-bn-launcher', '~> 0.1.3'
 | 
				
			||||||
gem 'net-ldap'
 | 
					gem 'net-ldap'
 | 
				
			||||||
gem 'bn-ldap-authentication', '~> 0.1.4'
 | 
					gem 'bn-ldap-authentication', '~> 0.1.4'
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										49
									
								
								Gemfile.lock
									
									
									
									
									
								
							
							
						
						
									
										49
									
								
								Gemfile.lock
									
									
									
									
									
								
							@@ -68,8 +68,10 @@ GEM
 | 
				
			|||||||
      tzinfo (~> 1.1)
 | 
					      tzinfo (~> 1.1)
 | 
				
			||||||
    addressable (2.7.0)
 | 
					    addressable (2.7.0)
 | 
				
			||||||
      public_suffix (>= 2.0.2, < 5.0)
 | 
					      public_suffix (>= 2.0.2, < 5.0)
 | 
				
			||||||
 | 
					    aes_key_wrap (1.1.0)
 | 
				
			||||||
    arel (9.0.0)
 | 
					    arel (9.0.0)
 | 
				
			||||||
    ast (2.4.0)
 | 
					    ast (2.4.0)
 | 
				
			||||||
 | 
					    attr_required (1.0.1)
 | 
				
			||||||
    autoprefixer-rails (9.7.6)
 | 
					    autoprefixer-rails (9.7.6)
 | 
				
			||||||
      execjs
 | 
					      execjs
 | 
				
			||||||
    aws-eventstream (1.1.0)
 | 
					    aws-eventstream (1.1.0)
 | 
				
			||||||
@@ -89,6 +91,7 @@ GEM
 | 
				
			|||||||
    aws-sigv4 (1.2.1)
 | 
					    aws-sigv4 (1.2.1)
 | 
				
			||||||
      aws-eventstream (~> 1, >= 1.0.2)
 | 
					      aws-eventstream (~> 1, >= 1.0.2)
 | 
				
			||||||
    bcrypt (3.1.13)
 | 
					    bcrypt (3.1.13)
 | 
				
			||||||
 | 
					    bindata (2.4.8)
 | 
				
			||||||
    bindex (0.8.1)
 | 
					    bindex (0.8.1)
 | 
				
			||||||
    bn-ldap-authentication (0.1.4)
 | 
					    bn-ldap-authentication (0.1.4)
 | 
				
			||||||
      net-ldap (~> 0)
 | 
					      net-ldap (~> 0)
 | 
				
			||||||
@@ -191,6 +194,10 @@ GEM
 | 
				
			|||||||
    jquery-ui-rails (6.0.1)
 | 
					    jquery-ui-rails (6.0.1)
 | 
				
			||||||
      railties (>= 3.2.16)
 | 
					      railties (>= 3.2.16)
 | 
				
			||||||
    json (2.3.0)
 | 
					    json (2.3.0)
 | 
				
			||||||
 | 
					    json-jwt (1.13.0)
 | 
				
			||||||
 | 
					      activesupport (>= 4.2)
 | 
				
			||||||
 | 
					      aes_key_wrap
 | 
				
			||||||
 | 
					      bindata
 | 
				
			||||||
    jwt (2.2.1)
 | 
					    jwt (2.2.1)
 | 
				
			||||||
    listen (3.0.8)
 | 
					    listen (3.0.8)
 | 
				
			||||||
      rb-fsevent (~> 0.9, >= 0.9.4)
 | 
					      rb-fsevent (~> 0.9, >= 0.9.4)
 | 
				
			||||||
@@ -211,7 +218,7 @@ GEM
 | 
				
			|||||||
    method_source (1.0.0)
 | 
					    method_source (1.0.0)
 | 
				
			||||||
    mimemagic (0.3.5)
 | 
					    mimemagic (0.3.5)
 | 
				
			||||||
    mini_mime (1.0.2)
 | 
					    mini_mime (1.0.2)
 | 
				
			||||||
    mini_portile2 (2.4.0)
 | 
					    mini_portile2 (2.5.0)
 | 
				
			||||||
    minitest (5.14.2)
 | 
					    minitest (5.14.2)
 | 
				
			||||||
    msgpack (1.3.3)
 | 
					    msgpack (1.3.3)
 | 
				
			||||||
    multi_json (1.14.1)
 | 
					    multi_json (1.14.1)
 | 
				
			||||||
@@ -219,8 +226,9 @@ GEM
 | 
				
			|||||||
    multipart-post (2.1.1)
 | 
					    multipart-post (2.1.1)
 | 
				
			||||||
    net-ldap (0.16.2)
 | 
					    net-ldap (0.16.2)
 | 
				
			||||||
    nio4r (2.5.4)
 | 
					    nio4r (2.5.4)
 | 
				
			||||||
    nokogiri (1.10.10)
 | 
					    nokogiri (1.11.1)
 | 
				
			||||||
      mini_portile2 (~> 2.4.0)
 | 
					      mini_portile2 (~> 2.5.0)
 | 
				
			||||||
 | 
					      racc (~> 1.4)
 | 
				
			||||||
    oauth (0.5.4)
 | 
					    oauth (0.5.4)
 | 
				
			||||||
    oauth2 (1.4.4)
 | 
					    oauth2 (1.4.4)
 | 
				
			||||||
      faraday (>= 0.8, < 2.0)
 | 
					      faraday (>= 0.8, < 2.0)
 | 
				
			||||||
@@ -250,6 +258,20 @@ GEM
 | 
				
			|||||||
    omniauth-twitter (1.4.0)
 | 
					    omniauth-twitter (1.4.0)
 | 
				
			||||||
      omniauth-oauth (~> 1.1)
 | 
					      omniauth-oauth (~> 1.1)
 | 
				
			||||||
      rack
 | 
					      rack
 | 
				
			||||||
 | 
					    omniauth_openid_connect (0.3.5)
 | 
				
			||||||
 | 
					      addressable (~> 2.5)
 | 
				
			||||||
 | 
					      omniauth (~> 1.9)
 | 
				
			||||||
 | 
					      openid_connect (~> 1.1)
 | 
				
			||||||
 | 
					    openid_connect (1.2.0)
 | 
				
			||||||
 | 
					      activemodel
 | 
				
			||||||
 | 
					      attr_required (>= 1.0.0)
 | 
				
			||||||
 | 
					      json-jwt (>= 1.5.0)
 | 
				
			||||||
 | 
					      rack-oauth2 (>= 1.6.1)
 | 
				
			||||||
 | 
					      swd (>= 1.0.0)
 | 
				
			||||||
 | 
					      tzinfo
 | 
				
			||||||
 | 
					      validate_email
 | 
				
			||||||
 | 
					      validate_url
 | 
				
			||||||
 | 
					      webfinger (>= 1.0.1)
 | 
				
			||||||
    os (1.1.0)
 | 
					    os (1.1.0)
 | 
				
			||||||
    pagy (3.8.1)
 | 
					    pagy (3.8.1)
 | 
				
			||||||
    parallel (1.19.1)
 | 
					    parallel (1.19.1)
 | 
				
			||||||
@@ -262,7 +284,14 @@ GEM
 | 
				
			|||||||
    popper_js (1.16.0)
 | 
					    popper_js (1.16.0)
 | 
				
			||||||
    public_suffix (4.0.5)
 | 
					    public_suffix (4.0.5)
 | 
				
			||||||
    puma (3.12.6)
 | 
					    puma (3.12.6)
 | 
				
			||||||
 | 
					    racc (1.5.2)
 | 
				
			||||||
    rack (2.2.3)
 | 
					    rack (2.2.3)
 | 
				
			||||||
 | 
					    rack-oauth2 (1.16.0)
 | 
				
			||||||
 | 
					      activesupport
 | 
				
			||||||
 | 
					      attr_required
 | 
				
			||||||
 | 
					      httpclient
 | 
				
			||||||
 | 
					      json-jwt (>= 1.11.0)
 | 
				
			||||||
 | 
					      rack (>= 2.1.0)
 | 
				
			||||||
    rack-test (1.1.0)
 | 
					    rack-test (1.1.0)
 | 
				
			||||||
      rack (>= 1.0, < 3)
 | 
					      rack (>= 1.0, < 3)
 | 
				
			||||||
    rails (5.2.4.4)
 | 
					    rails (5.2.4.4)
 | 
				
			||||||
@@ -376,6 +405,10 @@ GEM
 | 
				
			|||||||
      activesupport (>= 4.0)
 | 
					      activesupport (>= 4.0)
 | 
				
			||||||
      sprockets (>= 3.0.0)
 | 
					      sprockets (>= 3.0.0)
 | 
				
			||||||
    sqlite3 (1.3.13)
 | 
					    sqlite3 (1.3.13)
 | 
				
			||||||
 | 
					    swd (1.2.0)
 | 
				
			||||||
 | 
					      activesupport (>= 3)
 | 
				
			||||||
 | 
					      attr_required (>= 0.0.5)
 | 
				
			||||||
 | 
					      httpclient (>= 2.4)
 | 
				
			||||||
    sync (0.5.0)
 | 
					    sync (0.5.0)
 | 
				
			||||||
    syslog_protocol (0.9.2)
 | 
					    syslog_protocol (0.9.2)
 | 
				
			||||||
    term-ansicolor (1.7.1)
 | 
					    term-ansicolor (1.7.1)
 | 
				
			||||||
@@ -396,11 +429,20 @@ GEM
 | 
				
			|||||||
    uglifier (4.2.0)
 | 
					    uglifier (4.2.0)
 | 
				
			||||||
      execjs (>= 0.3.0, < 3)
 | 
					      execjs (>= 0.3.0, < 3)
 | 
				
			||||||
    unicode-display_width (1.7.0)
 | 
					    unicode-display_width (1.7.0)
 | 
				
			||||||
 | 
					    validate_email (0.1.6)
 | 
				
			||||||
 | 
					      activemodel (>= 3.0)
 | 
				
			||||||
 | 
					      mail (>= 2.2.5)
 | 
				
			||||||
 | 
					    validate_url (1.0.13)
 | 
				
			||||||
 | 
					      activemodel (>= 3.0.0)
 | 
				
			||||||
 | 
					      public_suffix
 | 
				
			||||||
    web-console (3.7.0)
 | 
					    web-console (3.7.0)
 | 
				
			||||||
      actionview (>= 5.0)
 | 
					      actionview (>= 5.0)
 | 
				
			||||||
      activemodel (>= 5.0)
 | 
					      activemodel (>= 5.0)
 | 
				
			||||||
      bindex (>= 0.4.0)
 | 
					      bindex (>= 0.4.0)
 | 
				
			||||||
      railties (>= 5.0)
 | 
					      railties (>= 5.0)
 | 
				
			||||||
 | 
					    webfinger (1.1.0)
 | 
				
			||||||
 | 
					      activesupport
 | 
				
			||||||
 | 
					      httpclient (>= 2.4)
 | 
				
			||||||
    webmock (3.8.3)
 | 
					    webmock (3.8.3)
 | 
				
			||||||
      addressable (>= 2.3.6)
 | 
					      addressable (>= 2.3.6)
 | 
				
			||||||
      crack (>= 0.3.2)
 | 
					      crack (>= 0.3.2)
 | 
				
			||||||
@@ -444,6 +486,7 @@ DEPENDENCIES
 | 
				
			|||||||
  omniauth-bn-office365 (~> 0.1.1)
 | 
					  omniauth-bn-office365 (~> 0.1.1)
 | 
				
			||||||
  omniauth-google-oauth2
 | 
					  omniauth-google-oauth2
 | 
				
			||||||
  omniauth-twitter
 | 
					  omniauth-twitter
 | 
				
			||||||
 | 
					  omniauth_openid_connect
 | 
				
			||||||
  pagy
 | 
					  pagy
 | 
				
			||||||
  pg (~> 0.18)
 | 
					  pg (~> 0.18)
 | 
				
			||||||
  pluck_to_hash (~> 1.0.2)
 | 
					  pluck_to_hash (~> 1.0.2)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Greenlight is a simple front-end interface for your BigBlueButton server. At its heart, Greenlight provides a minimalistic web-based application that allows users to:
 | 
					Greenlight is a simple front-end interface for your BigBlueButton server. At its heart, Greenlight provides a minimalistic web-based application that allows users to:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  * Signup/Login with Google, Office365, or through the application itself.
 | 
					  * Signup/Login with Google, Office365, OpenID Connect, or through the application itself.
 | 
				
			||||||
  * Manage your account settings and user preferences.
 | 
					  * Manage your account settings and user preferences.
 | 
				
			||||||
  * Create and manage your own personal rooms ([BigBlueButton](https://github.com/bigbluebutton/bigbluebutton) sessions).
 | 
					  * Create and manage your own personal rooms ([BigBlueButton](https://github.com/bigbluebutton/bigbluebutton) sessions).
 | 
				
			||||||
  * Invite others to your room using a simple URL.
 | 
					  * Invite others to your room using a simple URL.
 | 
				
			||||||
@@ -34,4 +34,3 @@ Greenlight is built using Ruby on Rails. Many developers already know Rails well
 | 
				
			|||||||
We invite you to build upon Greenlight and help make it better. See [Contributing to BigBlueButton](http://docs.bigbluebutton.org/support/faq.html#contributing-to-bigbluebutton).
 | 
					We invite you to build upon Greenlight and help make it better. See [Contributing to BigBlueButton](http://docs.bigbluebutton.org/support/faq.html#contributing-to-bigbluebutton).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
We invite your feedback, questions, and suggests about Greenlight too. Please post them to the [developer mailing list](https://groups.google.com/forum/#!forum/bigbluebutton-dev).
 | 
					We invite your feedback, questions, and suggests about Greenlight too. Please post them to the [developer mailing list](https://groups.google.com/forum/#!forum/bigbluebutton-dev).
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								app/assets/images/openid-logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/assets/images/openid-logo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 20 KiB  | 
@@ -155,6 +155,17 @@
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.customBtn-openid_connect {
 | 
				
			||||||
 | 
					  @extend .customBtn;
 | 
				
			||||||
 | 
					  background: #ef8e1f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  .customBtn-image {
 | 
				
			||||||
 | 
					    background: #ffffff image-url("openid-logo.png") no-repeat left top;
 | 
				
			||||||
 | 
					    background-size: 18px 18px;
 | 
				
			||||||
 | 
					    padding:10px 10px 10px 10px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.signin-button {
 | 
					.signin-button {
 | 
				
			||||||
  font-size: 16px;
 | 
					  font-size: 16px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,7 @@ require 'uri'
 | 
				
			|||||||
module ApplicationHelper
 | 
					module ApplicationHelper
 | 
				
			||||||
  # Determines which providers can show a login button in the login modal.
 | 
					  # Determines which providers can show a login button in the login modal.
 | 
				
			||||||
  def iconset_providers
 | 
					  def iconset_providers
 | 
				
			||||||
    providers = configured_providers & [:google, :twitter, :office365, :ldap]
 | 
					    providers = configured_providers & [:google, :twitter, :office365, :openid_connect, :ldap]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    providers.delete(:twitter) if session[:old_twitter_user_id]
 | 
					    providers.delete(:twitter) if session[:old_twitter_user_id]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,6 +16,9 @@ Rails.application.config.omniauth_twitter = ENV['TWITTER_ID'].present? && ENV['T
 | 
				
			|||||||
Rails.application.config.omniauth_google = ENV['GOOGLE_OAUTH2_ID'].present? && ENV['GOOGLE_OAUTH2_SECRET'].present?
 | 
					Rails.application.config.omniauth_google = ENV['GOOGLE_OAUTH2_ID'].present? && ENV['GOOGLE_OAUTH2_SECRET'].present?
 | 
				
			||||||
Rails.application.config.omniauth_office365 = ENV['OFFICE365_KEY'].present? &&
 | 
					Rails.application.config.omniauth_office365 = ENV['OFFICE365_KEY'].present? &&
 | 
				
			||||||
                                              ENV['OFFICE365_SECRET'].present?
 | 
					                                              ENV['OFFICE365_SECRET'].present?
 | 
				
			||||||
 | 
					Rails.application.config.omniauth_openid_connect = ENV['OPENID_CONNECT_CLIENT_ID'].present? &&
 | 
				
			||||||
 | 
					                                                   ENV['OPENID_CONNECT_CLIENT_SECRET'].present? &&
 | 
				
			||||||
 | 
					                                                   ENV['OPENID_CONNECT_ISSUER'].present?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SETUP_PROC = lambda do |env|
 | 
					SETUP_PROC = lambda do |env|
 | 
				
			||||||
  OmniauthOptions.omniauth_options env
 | 
					  OmniauthOptions.omniauth_options env
 | 
				
			||||||
@@ -59,6 +62,42 @@ Rails.application.config.middleware.use OmniAuth::Builder do
 | 
				
			|||||||
        redirect_uri: redirect,
 | 
					        redirect_uri: redirect,
 | 
				
			||||||
        setup: SETUP_PROC
 | 
					        setup: SETUP_PROC
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					    if Rails.configuration.omniauth_openid_connect
 | 
				
			||||||
 | 
					      Rails.application.config.providers << :openid_connect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      redirect = ENV['OAUTH2_REDIRECT'].present? ? File.join(ENV['OAUTH2_REDIRECT'], "auth", "openid_connect", "callback") : nil
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      provider :openid_connect,
 | 
				
			||||||
 | 
					        issuer: ENV["OPENID_CONNECT_ISSUER"],
 | 
				
			||||||
 | 
					        discovery: true,
 | 
				
			||||||
 | 
					        scope: [:email, :profile],
 | 
				
			||||||
 | 
					        response_type: :code,
 | 
				
			||||||
 | 
					        uid_field: ENV["OPENID_CONNECT_UID_FIELD"] || "preferred_username",
 | 
				
			||||||
 | 
					        client_options: {
 | 
				
			||||||
 | 
					          identifier: ENV['OPENID_CONNECT_CLIENT_ID'],
 | 
				
			||||||
 | 
					          secret: ENV['OPENID_CONNECT_CLIENT_SECRET'],
 | 
				
			||||||
 | 
					          redirect_uri: redirect
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        setup: SETUP_PROC
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
 | 
					    if Rails.configuration.omniauth_openid_connect
 | 
				
			||||||
 | 
					      Rails.application.config.providers << :openid_connect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      redirect = ENV['OAUTH2_REDIRECT'].present? ? File.join(ENV['OAUTH2_REDIRECT'], "auth", "openid_connect", "callback") : nil
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      provider :openid_connect,
 | 
				
			||||||
 | 
					        issuer: ENV["OPENID_CONNECT_ISSUER"],
 | 
				
			||||||
 | 
					        discovery: true,
 | 
				
			||||||
 | 
					        scope: [:email, :profile],
 | 
				
			||||||
 | 
					        response_type: :code,
 | 
				
			||||||
 | 
					        uid_field: ENV["OPENID_CONNECT_UID_FIELD"] || "preferred_username",
 | 
				
			||||||
 | 
					        client_options: {
 | 
				
			||||||
 | 
					          identifier: ENV['OPENID_CONNECT_CLIENT_ID'],
 | 
				
			||||||
 | 
					          secret: ENV['OPENID_CONNECT_CLIENT_SECRET'],
 | 
				
			||||||
 | 
					          redirect_uri: redirect
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        setup: SETUP_PROC
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -477,6 +477,7 @@ de_DE:
 | 
				
			|||||||
    office365: Office 365
 | 
					    office365: Office 365
 | 
				
			||||||
    twitter: Twitter
 | 
					    twitter: Twitter
 | 
				
			||||||
    ldap: LDAP
 | 
					    ldap: LDAP
 | 
				
			||||||
 | 
					    openid_connect: OpenID Connect
 | 
				
			||||||
  recaptcha:
 | 
					  recaptcha:
 | 
				
			||||||
    errors:
 | 
					    errors:
 | 
				
			||||||
      recaptcha_unreachable: "Ups, es war nicht möglich die reCAPTCHA Antwort zu überprüfen. Bitte versuchen Sie es nochmals."
 | 
					      recaptcha_unreachable: "Ups, es war nicht möglich die reCAPTCHA Antwort zu überprüfen. Bitte versuchen Sie es nochmals."
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -478,6 +478,7 @@ en:
 | 
				
			|||||||
    office365: Office 365
 | 
					    office365: Office 365
 | 
				
			||||||
    twitter: Twitter
 | 
					    twitter: Twitter
 | 
				
			||||||
    ldap: LDAP
 | 
					    ldap: LDAP
 | 
				
			||||||
 | 
					    openid_connect: OpenID Connect
 | 
				
			||||||
  recaptcha:
 | 
					  recaptcha:
 | 
				
			||||||
    errors:
 | 
					    errors:
 | 
				
			||||||
      recaptcha_unreachable: Oops, we failed to validate your reCAPTCHA response. Please try again.
 | 
					      recaptcha_unreachable: Oops, we failed to validate your reCAPTCHA response. Please try again.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -477,6 +477,7 @@ gl:
 | 
				
			|||||||
    office365: Office 365
 | 
					    office365: Office 365
 | 
				
			||||||
    twitter: Twitter
 | 
					    twitter: Twitter
 | 
				
			||||||
    ldap: LDAP
 | 
					    ldap: LDAP
 | 
				
			||||||
 | 
					    openid_connect: Conectar con OpenID
 | 
				
			||||||
  recaptcha:
 | 
					  recaptcha:
 | 
				
			||||||
    errors:
 | 
					    errors:
 | 
				
			||||||
      recaptcha_unreachable: Ouh! non podemos validar a resposta de reCAPTCHA. Tenteo de novo.
 | 
					      recaptcha_unreachable: Ouh! non podemos validar a resposta de reCAPTCHA. Tenteo de novo.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,6 +37,8 @@ module OmniauthOptions
 | 
				
			|||||||
      set_hd(env, ENV['GOOGLE_OAUTH2_HD'])
 | 
					      set_hd(env, ENV['GOOGLE_OAUTH2_HD'])
 | 
				
			||||||
    elsif env['omniauth.strategy'].options[:name] == "office365"
 | 
					    elsif env['omniauth.strategy'].options[:name] == "office365"
 | 
				
			||||||
      set_hd(env, ENV['OFFICE365_HD'])
 | 
					      set_hd(env, ENV['OFFICE365_HD'])
 | 
				
			||||||
 | 
					    elsif env['omniauth.strategy'].options[:name] == "openid_connect"
 | 
				
			||||||
 | 
					      set_hd(env, ENV['OPENID_CONNECT_HD'])
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										12
									
								
								sample.env
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								sample.env
									
									
									
									
									
								
							@@ -51,6 +51,18 @@ OFFICE365_KEY=
 | 
				
			|||||||
OFFICE365_SECRET=
 | 
					OFFICE365_SECRET=
 | 
				
			||||||
OFFICE365_HD=
 | 
					OFFICE365_HD=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# OpenID Connect Provider (optional)
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# For in-depth steps on setting up a OpenID Connect Login Provider, see:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					#   https://docs.bigbluebutton.org/greenlight/gl-config.html#openid-connect
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					OPENID_CONNECT_CLIENT_ID=
 | 
				
			||||||
 | 
					OPENID_CONNECT_CLIENT_SECRET=
 | 
				
			||||||
 | 
					OPENID_CONNECT_ISSUER=
 | 
				
			||||||
 | 
					OPENID_CONNECT_HD=
 | 
				
			||||||
 | 
					OPENID_CONNECT_UID_FIELD=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# OAUTH2_REDIRECT allows you to specify the redirect_url passed to oauth on sign in.
 | 
					# OAUTH2_REDIRECT allows you to specify the redirect_url passed to oauth on sign in.
 | 
				
			||||||
# It is useful for cases when Greenlight is deployed behind a Network Load Balancer or proxy
 | 
					# It is useful for cases when Greenlight is deployed behind a Network Load Balancer or proxy
 | 
				
			||||||
OAUTH2_REDIRECT=
 | 
					OAUTH2_REDIRECT=
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user