authic_client 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- class AuthicClient::SessionsController < ApplicationController
1
+ class AuthicClient::SessionsController < ActionController::Base
2
2
  def create
3
3
  user = User.find_for_authic_oauth(request.env["omniauth.auth"], current_user)
4
4
  if user.persisted?
@@ -12,6 +12,10 @@ module AuthicClient
12
12
  def signup_path
13
13
  "/auth/authic?&authic_action=signup"
14
14
  end
15
+
16
+ def signin_iframe_path
17
+ "#{AuthicClient::AUTHIC_CLIENT_FULL_URL}/v1/signin_iframe"
18
+ end
15
19
 
16
20
  def user_account_path
17
21
  "#{AuthicClient::AUTHIC_CLIENT_FULL_URL}/edit_account"
@@ -1,3 +1,3 @@
1
1
  module AuthicClient
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -3,5 +3,7 @@ module AuthicClient
3
3
  AUTHIC_CLIENT_KEY ||= ENV['AUTHIC_CLIENT_KEY'] ||= '< your authic client key >'
4
4
  AUTHIC_CLIENT_SECRET ||= ENV['AUTHIC_CLIENT_SECRET'] ||= '< your authic client secret >'
5
5
  AUTHIC_CLIENT_SUBDOMAIN ||= ENV['AUTHIC_CLIENT_SUBDOMAIN'] ||= '< your authic subdomain >'
6
+ # Dont touch the FULL URL variable, you might break everything!
6
7
  AUTHIC_CLIENT_FULL_URL = "https://#{AUTHIC_CLIENT_SUBDOMAIN}.authic.com"
8
+ # end dont touch
7
9
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: authic_client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.11
5
+ version: 0.0.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - authic
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-12-04 00:00:00 Z
13
+ date: 2012-12-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- hash: 511589673280702263
154
+ hash: -1824256681951648159
155
155
  segments:
156
156
  - 0
157
157
  version: "0"
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- hash: 511589673280702263
163
+ hash: -1824256681951648159
164
164
  segments:
165
165
  - 0
166
166
  version: "0"