No commit activity in last 3 years
No release in over 3 years
d-account Oauth2 strategy for OmniAuth. This allows you to login to d-account with your ruby app
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 3.9.0
~> 1.1.0
>= 12.3.3
~> 3.0
~> 0.18.5
~> 3.8.3

Runtime

>= 1.1.1
 Project Readme

Omniauth::Daccount

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/omniauth/daccount. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'omniauth-daccount'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-daccount

Setup Your d-account API

Usage

Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :daccount, ENV['D_ACCOUNT_CLIENT_ID'], ENV['D_ACCOUNT_CLIENT_SECRET'], callback_path: "your callback url"  
end

Note: daccount connect cannot register http url as callback url. That is, localhost cannot be registered. Of course in most cases using localhosts while developing your application... but we need to prepare https callback url in this case(You can choise deploying heloku or using ngrok, and more).

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-daccount. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.