ibrain-auth 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +3 -2
- data/lib/ibrain/auth/version.rb +2 -2
- data/lib/ibrain/auth.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c08fcfe12771e9c3cdde0a63bc0250d51cd5c7f27f9b082d0d835867a8d52b6
|
4
|
+
data.tar.gz: a876783c23b3109877d3f4f9d8e88d004e053996ae3ea710910c37d00cda6b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141d5cc986c569da43a09c1621c3b17aba77d5906eb794c8edcb837f0796b7f678cd62c35dd2d87ba701808536c717949e8e313e770ca9658d1dc8d8d39d9756
|
7
|
+
data.tar.gz: 104b92ead3c2452fe1e891567712883c5832978c1dce0d931ad291b33289a579f56e9df67172d410c58a91799d0bb551d1d83032b0fbfc7842e598460fd203c6
|
data/config/routes.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
Ibrain::
|
3
|
+
Ibrain::Auth::Engine.routes.draw do
|
4
4
|
devise_for :users, controllers: {
|
5
5
|
sessions: "ibrain/auth/sessions",
|
6
6
|
registrations: "ibrain/auth/registrations",
|
7
|
-
callback: "ibrain/auth/sessions/callback"
|
8
7
|
},
|
9
8
|
path: "api/#{Ibrain::Config.api_version}/users",
|
10
9
|
defaults: { format: :json }
|
10
|
+
|
11
|
+
get "api/#{Ibrain::Config.api_version}/users/callback" => 'sessions#callback'
|
11
12
|
end
|
data/lib/ibrain/auth/version.rb
CHANGED
@@ -4,14 +4,14 @@ module Ibrain
|
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
6
|
module Auth
|
7
|
-
VERSION = '0.3.
|
7
|
+
VERSION = '0.3.3'
|
8
8
|
|
9
9
|
def self.ibrain_auth_version
|
10
10
|
VERSION
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.previous_ibrain_auth_minor_version
|
14
|
-
'0.3.
|
14
|
+
'0.3.2'
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.ibrain_auth_gem_version
|
data/lib/ibrain/auth.rb
CHANGED
@@ -4,6 +4,10 @@ require 'devise'
|
|
4
4
|
require 'devise-encryptable'
|
5
5
|
require 'devise/jwt'
|
6
6
|
require 'omniauth'
|
7
|
+
require 'omniauth-facebook'
|
8
|
+
require 'omniauth-google-oauth2'
|
9
|
+
require 'omniauth-line'
|
10
|
+
require 'omniauth-apple'
|
7
11
|
require 'omniauth-twitter'
|
8
12
|
require 'ibrain_core'
|
9
13
|
|