omniauth-feishu 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/_config.yml +2 -1
- data/lib/omniauth/feishu/version.rb +1 -1
- data/omniauth-feishu.gemspec +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76be3c81fdbd541e9da9e81dba5942e65eb714b06e1f5c27db0cf556708548f4
|
4
|
+
data.tar.gz: 1268f8b4d8eb2d1fc05217a8a53943acb4c17449fbd7af3568c11105c764768e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9864d5f6c7673da53341fbd4a5b63b9c9f57cca0e789f68e0c56526908ef6bd73ec652f0f143ff582b07124f53c4838af4d26c63ac31ade5b1d64afb5cf9ada0
|
7
|
+
data.tar.gz: bab0ebfc1733478d227a3fc736401d888a037cc71e7999623182c521783889d6fb3b331ec3b871bae61d0b2db64965ad73d1fa9a75f89c6097718ba01edebe5b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -72,11 +72,20 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def failure
|
75
|
+
flash[:alert] = request.env["omniauth.error"]
|
75
76
|
redirect_to root_path
|
76
77
|
end
|
77
78
|
end
|
78
79
|
```
|
79
80
|
|
81
|
+
Devise will create the following url methods:
|
82
|
+
- user_feishu_omniauth_authorize_path
|
83
|
+
- user_feishu_omniauth_callback_path
|
84
|
+
|
85
|
+
So you may add a button like this:
|
86
|
+
```
|
87
|
+
<%= link_to "Sign in with feishu", user_feishu_omniauth_authorize_path, class: "btn" %>
|
88
|
+
```
|
80
89
|
|
81
90
|
## Contributing
|
82
91
|
|
data/_config.yml
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
theme: jekyll-theme-cayman
|
1
|
+
theme: jekyll-theme-cayman
|
2
|
+
show_downloads: true
|
data/omniauth-feishu.gemspec
CHANGED
@@ -11,6 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
|
+
spec.add_dependency "omniauth-oauth2", "~> 1.6.0"
|
15
|
+
|
14
16
|
# Specify which files should be added to the gem when it is released.
|
15
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
16
18
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-feishu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renny
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-01-07 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: omniauth-oauth2
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.6.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.6.0
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
- rennyallen@hotmail.com
|