authentication-zero 2.12.0 → 2.12.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fb2db79d9ec8af38e73e00fd45298471a60166395b9cc28be6483f3ce2b5c19
|
4
|
+
data.tar.gz: 2c9e5f9286e11bcc1a60871c2a22e46f0e82d16269142b587d109b8d3462bb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ffd4716ca5ae698dd51ab43a3721c33a425c27318f517f6fe8d0f4a6799313af37618cdce3fdb03ee7d1065898fb1ae9fde4652bf7f2fab482c4e81699a0317
|
7
|
+
data.tar.gz: 53fb29f4bad9fb1f59c32b5b6bcbff68427297685635c5d09217b1a3a5fe6a1fff91f392104579a3e596d6fcfb055c5c950da56eca0fd0ddedc9a8f13955e58d
|
data/Gemfile.lock
CHANGED
data/authentication-zero-api.md
CHANGED
@@ -21,7 +21,6 @@ curl -H "Authorization: Bearer $ACCESS_TOKEN" \
|
|
21
21
|
- [Get your sessions](#get-your-sessions)
|
22
22
|
- [Get a session](#get-a-session)
|
23
23
|
- [Destroy a session](#destroy-a-session)
|
24
|
-
- [Execute sudo](#execute-sudo)
|
25
24
|
- [Update your password](#update-your-password)
|
26
25
|
- [Update your email](#update-your-email)
|
27
26
|
- [Send verification email](#send-verification-email)
|
@@ -115,21 +114,6 @@ This endpoint will return `201 Created` with the current JSON representation of
|
|
115
114
|
|
116
115
|
Returns `204 No Content` if successful.
|
117
116
|
|
118
|
-
|
119
|
-
### Execute sudo
|
120
|
-
|
121
|
-
* `POST /sessions/sudo` will grant temporary access to sensitive information.
|
122
|
-
|
123
|
-
###### Example JSON Request
|
124
|
-
|
125
|
-
``` json
|
126
|
-
{
|
127
|
-
"password": "Secret1*2*3*4*5*6",
|
128
|
-
}
|
129
|
-
```
|
130
|
-
|
131
|
-
Returns `204 No Content` if successful.
|
132
|
-
|
133
117
|
## Password
|
134
118
|
|
135
119
|
### Update your password
|
@@ -158,6 +142,7 @@ This endpoint will return 200 OK with the current JSON representation of the use
|
|
158
142
|
|
159
143
|
``` json
|
160
144
|
{
|
145
|
+
"current_password": "Secret1*2*3*4*5*6",
|
161
146
|
"email": "new_email@hey.com"
|
162
147
|
}
|
163
148
|
```
|
@@ -16,7 +16,7 @@ class SessionsController < ApplicationController
|
|
16
16
|
|
17
17
|
if user && user.authenticate(params[:password])
|
18
18
|
@session = user.sessions.create!
|
19
|
-
response.set_header
|
19
|
+
response.set_header "X-Session-Token", @session.signed_id
|
20
20
|
|
21
21
|
render json: @session, status: :created
|
22
22
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentication-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.
|
4
|
+
version: 2.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|