auth1 0.3.0 → 0.4.0

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: 3b3ad616013e8575d0698b0459572d51a2516a2846237709d1713edd4e7bbec6
4
- data.tar.gz: f37fdd081a5955d1749cd22290d784ae05f9ef3a4496d6044de589ed29e9313d
3
+ metadata.gz: 23449d863a7488a869e5b584dbfd6c624d07a57a7b5eaf491900fe4a456b92ef
4
+ data.tar.gz: c77439187931a3f410c1d62a117d0f1ff40ce2d5a0a65b9ba1a0d667854edf93
5
5
  SHA512:
6
- metadata.gz: 2d1d686fa3c33118f860cff7ae134ce1599e88c18af4faadf813d4a44af47bbe860df9ab5e0a289dd383002c57906a28c313562e102e8a047bd6632bc34ed8bb
7
- data.tar.gz: 4ad7674a96035d9d38bad4fec498a6a1376c727ff8fcc5081aceded3961eb20d860f9ba8736187b6df6caa5f22b04c365a8e82ca2bad076388f4e9145b734a47
6
+ metadata.gz: b511924b3065485b76e4a0b3eeb1cec655fee5c0f26c9e1bbc4c0b83a24e3cc94d266ef985aa0e41a10e8d38bf3972a1a35ea468c5a4c33826587a3c4cac16b8
7
+ data.tar.gz: fd7456d3823a99e120e832c6e73e30a0a0da1d489ec38dd1465e43201253b2c290a030e8aca89e4029955369a325e2ed583fc7f201f7775c666c88268a62354b
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Auth1
2
- Auth1 provides everything you need to use Auth0 in your Rails application.
2
+ Auth1 is a Rails Engine for Auth0. Auth1 provides everything you need to use [Auth0](https://auth0.com) in your Rails application.
3
3
 
4
4
  ## Usage
5
5
  How to use my plugin.
@@ -16,14 +16,20 @@ And then execute:
16
16
  $ bundle
17
17
  ```
18
18
 
19
- Set the following environment variables with the values from [Auth0 Application Settings](https://manage.auth0.com/#/applications):
19
+ Set the following environment variables:
20
20
  ```bash
21
+ # Values from https://manage.auth0.com/#/applications
21
22
  AUTH0_CLIENT_ID
22
23
  AUTH0_CLIENT_SECRET
23
24
  AUTH0_DOMAIN
25
+
26
+ # URL in your application to redirect to after logout from Auth0
27
+ AUTH0_LOGOUT_URL
24
28
  ```
25
29
 
26
- Update **Allowed Callback URLs** field in [Auth0 Application Settings](https://manage.auth0.com/#/applications). For local development, you can set this value to http://localhost:3000/auth/auth0/callback.
30
+ Update **Allowed Callback URLs** field in [Auth0 Application Settings](https://manage.auth0.com/#/applications). For local development, you can set this value to `http://localhost:3000/auth/auth0/callback`.
31
+
32
+ Update **Allowed Logout URLs** field in [Auth0 Application Settings](https://manage.auth0.com/#/applications) with the same value in `AUTH0_LOGOUT_URL` environment variable.
27
33
 
28
34
  ## View Helpers
29
35
 
@@ -28,7 +28,7 @@ module Auth1
28
28
  def auth0_logout_url
29
29
  request_params = {
30
30
  client_id: ENV['AUTH0_CLIENT_ID'],
31
- returnTo: 'http://localhost:3000/' # TODO
31
+ returnTo: ENV['AUTH0_LOGOUT_URL']
32
32
  }
33
33
 
34
34
  URI::HTTPS.build(
data/lib/auth1/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Auth1
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joon Lee
@@ -118,7 +118,8 @@ dependencies:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
- description: Auth1 provides everything you need to use Auth0 in your Rails application.
121
+ description: Auth1 is a Rails Engine for Auth0. Auth1 provides everything you need
122
+ to use Auth0 in your Rails application.
122
123
  email:
123
124
  - seouri@gmail.com
124
125
  executables: []
@@ -166,5 +167,5 @@ requirements: []
166
167
  rubygems_version: 3.1.2
167
168
  signing_key:
168
169
  specification_version: 4
169
- summary: Auth1 is an Auth0 Rails Engine.
170
+ summary: Auth1 is a Rails Engine for Auth0.
170
171
  test_files: []