lib/omniauth/strategies/auth0.rb in omniauth-auth0-3.0.0 vs lib/omniauth/strategies/auth0.rb in omniauth-auth0-3.1.0

- old
+ new

@@ -82,20 +82,20 @@ end # Define the parameters used for the /authorize endpoint def authorize_params params = super - %w[connection connection_scope prompt screen_hint login_hint organization invitation].each do |key| + %w[connection connection_scope prompt screen_hint login_hint organization invitation ui_locales].each do |key| params[key] = request.params[key] if request.params.key?(key) end # Generate nonce params[:nonce] = SecureRandom.hex # Generate leeway if none exists params[:leeway] = 60 unless params[:leeway] # Store authorize params in the session for token verification - session['authorize_params'] = params + session['authorize_params'] = params.to_hash params end def build_access_token