strongmind-auth 1.0.0 → 1.0.2

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: 858a24af8bdc82d60c187a237ce0f9012aca8ca0aafea595d55ba05c4bd30dcd
4
- data.tar.gz: a36d21bdee8b7f7baad95bb763cee7233658727c7dfa4e8511f98eb28edda262
3
+ metadata.gz: 739e3ce6d5b6705f2079e7a24b572d21df94d8e3509a487a30f427ce22254713
4
+ data.tar.gz: f338629c41d5ec042f11e8627d852fd388738fcbe0f4fd61d0fb085b20a2e380
5
5
  SHA512:
6
- metadata.gz: 4176c666a31033ec33658b7138ed3e13787dd3a03c58f31d80f69211e367d45b469fa2ba4f42bd0b65ba54b6bf7235b455df520f592af98bde878b3a494ce95b
7
- data.tar.gz: 6bad2f62194ed2adeec7cae1dfc664b571f2d915683b1966c614adc2e1f2997bf2d7a0ab234f8062f403979fa837d861c99cc38be386c69dbcc1d448c58dce87
6
+ metadata.gz: 1214dd5316b2402c75c41d10b74dce2cede5c639bcf72e84b78faf1de325b186d60bc57edd186678e14f4e26bf01f101334e37a317c95432e7d9854ed248be85
7
+ data.tar.gz: 662dd22e6c058e7022e3a1f872ec097ab688019959afb030ac9529617c18771da14f2b4774c071729229d681e47706a97fa8f9e8cf77b641a7060e329c4d37dc
data/README.md CHANGED
@@ -4,15 +4,11 @@ Ruby gem for authentication in a rails app
4
4
 
5
5
  ## Usage
6
6
 
7
- How to use my plugin.
8
-
9
- ## Installation
10
-
11
- 1. `rails new app_name --tailwind`
12
- 1. Add strongmind-auth to gem file and bundle
7
+ 1. `rails new app_name --css tailwind`
8
+ 1. `bundle add strongmind-auth`
13
9
  1. `rails g strongmind:install`
14
10
  1. Move app root to authenticated root in routes
15
- 1. Add IDENTITY_CLIENT_ID and IDENTITY_CLIENT_SECRET values to .env
11
+ 1. Add `IDENTITY_CLIENT_ID` and `IDENTITY_CLIENT_SECRET` values to .env
16
12
  1. `bundle`
17
13
  1. `rails dev:cache`
18
- 1. `bin/dev`
14
+ 1. `bin/dev`
@@ -17,7 +17,7 @@
17
17
  <%= button_to 'Sign in with StrongMind', '/users/auth/strongmind', style: 'display:none' %>
18
18
  <script type="text/javascript">
19
19
  function submitForm() {
20
- //document.forms[0].submit();
20
+ document.forms[0].submit();
21
21
  }
22
22
 
23
23
  // Submit the form on load
@@ -49,7 +49,7 @@ devise_scope :user do
49
49
  end
50
50
 
51
51
  def add_dotenv_file
52
- copy_file ".env", ".env"
52
+ copy_file "env", ".env"
53
53
  end
54
54
  end
55
55
 
@@ -0,0 +1,4 @@
1
+ IDENTITY_CLIENT_ID=
2
+ IDENTITY_CLIENT_SECRET=
3
+ IDENTITY_BASE_URL=https://devlogin.strongmind.com
4
+ APP_BASE_URL=http://localhost:3000
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Belding
@@ -118,6 +118,7 @@ files:
118
118
  - lib/generators/strongmind/USAGE
119
119
  - lib/generators/strongmind/install_generator.rb
120
120
  - lib/generators/strongmind/templates/add_uid_to_user.rb
121
+ - lib/generators/strongmind/templates/env
121
122
  - lib/generators/strongmind/templates/user.rb
122
123
  - lib/strongmind/auth.rb
123
124
  - lib/strongmind/auth/engine.rb