https://github.com/umbrellio/sidekiq_web_google_auth
https://github.com/umbrellio/sidekiq_web_google_auth
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/umbrellio/sidekiq_web_google_auth
- Owner: umbrellio
- License: mit
- Created: 2022-06-22T05:09:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T07:17:27.000Z (almost 4 years ago)
- Last Synced: 2024-10-19T09:06:46.463Z (over 1 year ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SidekiqWebGoogleAuth
[](https://travis-ci.org/umbrellio/sidekiq_web_google_auth)
[](https://coveralls.io/github/umbrellio/sidekiq_web_google_auth?branch=master)
[](https://badge.fury.io/rb/sidekiq_web_google_auth)
Google OAuth for Sidekiq::Web
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'sidekiq_web_google_auth'
```
And then execute:
$ bundle install
Or install it yourself as:
$ gem install sidekiq_web_google_auth
## Usage
Initialize builder:
```ruby
Sidekiq::Web.use(SidekiqWebGoogleAuth::Builder) do
provider(
"example_client_id", # Google OAuth client ID
"example_client_secret", # Google OAuth client secret
# You must provide at least one of: authorized_emails, authorized_email_domains
authorized_emails: %w[test@mail.com], # List of authorized emails
authorized_emails_domains: %w[mail.com], # List of authorized emails domains
)
end
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/sidekiq_web_google_auth.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Authors
Team Umbrellio
---