【文件属性】:
文件名称:omniauth-dhamma-org1:测试gem以使用我自己的OIDC提供程序
文件大小:17KB
文件格式:ZIP
更新时间:2021-03-29 10:47:02
Ruby
Omniauth Dhamma Org1策略
欢迎使用您的新宝石! 在此目录中,您将找到能够将Ruby库打包为gem所需的文件。 将您的Ruby代码放在文件lib/omniauth-dhamma-org1 。 要试验该代码,请运行bin/console进行交互式提示。
通过OmniAuth中的OAuth2与Dhamma.org进行身份验证的策略。
在以下位置获取您的API密钥:???
安装
将此行添加到您的应用程序的Gemfile中:
gem 'omniauth-dhamma-org1'
然后执行:
$ bundle
用法
这是在config/initializers/omniauth.rb中间件添加到Rails应用程序的config/initializers/omniauth.rb :
Rails . application . config . middleware . u
【文件预览】:
omniauth-dhamma-org1-master
----.gitignore(140B)
----.rspec(53B)
----bin()
--------setup(131B)
--------console(355B)
----LICENSE.txt(1KB)
----spec()
--------rubocop_spec.rb(200B)
--------omniauth_dhamma_org1_spec.rb.bak(201B)
--------spec_helper.rb(376B)
--------omniauth()
----README.md(2KB)
----omniauth-dhamma-org1.gemspec(2KB)
----lib()
--------.directory(93B)
--------omniauth()
--------omniauth-dhamma-org1.rb(62B)
----Gemfile(206B)
----Rakefile(148B)