Sha256: a42774a465f2052d47726b70ad881bff4251e6107a01bc76fbabc70c3420059f
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true require_relative "extension" module SidekiqWebGoogleAuth class Builder < OmniAuth::Builder def provider(*args, authorized_emails:, **options, &block) super("google_oauth2", *args, options.merge(name: "oauth"), &block) Sidekiq::Web.register(SidekiqWebGoogleAuth::Extension.new(authorized_emails)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_web_google_auth-0.1.1 | lib/sidekiq_web_google_auth/builder.rb |
sidekiq_web_google_auth-0.1.0 | lib/sidekiq_web_google_auth/builder.rb |