lockie 0.3.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ee73ebd0d83d510942864ae11dad538c578fa4b396fad352d6c4f1602fdfbd5
4
- data.tar.gz: 5fce20025be471f55631caa7d6d9ce874b640b838e517662e0d26acd6f576e42
3
+ metadata.gz: a87647ec7963dd3953e0409c1d850a6e722b5a18571bae84086f31f68ab15ac8
4
+ data.tar.gz: 19c6d8fa8f2b6d65012162a39a5aa9ce03bb32e285ed261a520e532fa497c24a
5
5
  SHA512:
6
- metadata.gz: 5005acb3551a23b03aa7e6e1a87e0224c054fde2e1768cf84c3d278064ab1f9ff8b525d0a4c209dfa48cf11340b74935e13a14cdaa04f7b12c6b69c7c27a71b8
7
- data.tar.gz: a002a2bd09c46b611a0d1ac544f65c74dd93bc69c632da534d12cc3e869e93cc73bd10d1056645d6c00c63ad18474eaebc759125cc2e4331a7aa87df08449b12
6
+ metadata.gz: b84e03fe168abe2a12e3b194894f0d512acac984681b04d4a8c2e53b3c399dfb6fe6df9adfc7794cd292f1c276bd59fd4dc2258138abc5eec2e82c4a650f2fc5
7
+ data.tar.gz: 306fb63d6cfa264c1ef6f18c72d9ec311d7ef90816ac36022d2bb102f17d6dcd71be95d6f313a97e062ef8bd688f257166b720108ca48ea514223526d95ea8d3
data/README.md CHANGED
@@ -41,8 +41,12 @@ Session controller
41
41
  class SessionController < ApplicationController
42
42
  skip_before_action :authenticate!, only: [:new]
43
43
 
44
+ def new
45
+ session[:callback_url] = params[:callback_url] if params[:callback_url]
46
+ end
47
+
44
48
  def create
45
- redirect_to root_url # redirect to your homepage if username and password is valid
49
+ redirect_to session[:callback_url] || root_url
46
50
  end
47
51
 
48
52
  def destroy
@@ -47,7 +47,7 @@ module Lockie
47
47
  end
48
48
 
49
49
  def message
50
- @message ||= request.env['warden.message'] || "Unauthorized"
50
+ @message ||= request.env['warden.message']
51
51
  end
52
52
 
53
53
  def warden_options
@@ -1,3 +1,3 @@
1
1
  module Lockie
2
- VERSION = '0.3.4'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Melvin Sembrano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-15 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -119,7 +119,7 @@ homepage: https://github.com/melvinsembrano/lockie
119
119
  licenses:
120
120
  - MIT
121
121
  metadata:
122
- allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
122
+ allowed_push_host: https://rubygems.org
123
123
  post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.0.8
138
+ rubygems_version: 3.0.3.1
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Drop in password and JWT token authentication for Ruby on Rails