Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jinhucheung/omniauth-etencent
Omniauth strategy for Tencent Marketing
https://github.com/jinhucheung/omniauth-etencent
marketing oauth2 omniauth qq ruby tencent tencent-api
Last synced: about 1 month ago
JSON representation
Omniauth strategy for Tencent Marketing
- Host: GitHub
- URL: https://github.com/jinhucheung/omniauth-etencent
- Owner: jinhucheung
- License: mit
- Created: 2021-06-20T16:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T06:23:00.000Z (over 3 years ago)
- Last Synced: 2024-10-29T11:06:46.271Z (2 months ago)
- Topics: marketing, oauth2, omniauth, qq, ruby, tencent, tencent-api
- Language: Ruby
- Homepage: https://github.com/jinhucheung/omniauth-etencent
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Gem Version](https://badge.fury.io/rb/omniauth-etencent.svg)](https://badge.fury.io/rb/omniauth-etencent)
[![Build Status](https://github.com/jinhucheung/omniauth-etencent/actions/workflows/main.yml/badge.svg)](https://github.com/jinhucheung/omniauth-etencent/actions)# Omniauth Etencent
This is the official OmniAuth strategy for authenticating to Tencent Marketing. To use it, you'll need to sign up for an OAuth2 Application ID and Secret on the [Tencent Marketing Applications Page](https://developers.e.qq.com/app).
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'omniauth-etencent'
```And then execute:
```
$ bundle install
```Or install it yourself as:
```
$ gem install omniauth-etencent
```## Usage
`OmniAuth::Strategies::Etencent` is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.
Here's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :etencent, ENV['ETENCENT_APP_ID'], ENV['ETENCENT_APP_SECRET']
end
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jinhucheung/omniauth-etencent.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).