You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- CI tests for Py{311,312,313}-Django{2x,3x,4x,5x}.
11
+
12
+
[3.0.0]
13
+
^^^^^^^
14
+
15
+
Added
16
+
"""""
17
+
- Support for Django 4.x.
18
+
- Support for Django 3.2.
19
+
20
+
Changed
21
+
"""""""
22
+
- Method ``phone_verify.backends.nexmo.NexmoBackend.send_sms`` changes parameter name from ``numbers`` to ``number`` to be consistent with rest of the inherited classes.
23
+
24
+
[2.0.1]
25
+
^^^^^^^
26
+
27
+
Added
28
+
"""""
29
+
- Support for Python 3.8 & Python 3.9.
30
+
- CI tests for Py{36,37,38,39}-Django{20,21,22,30,31}.
31
+
32
+
Changed
33
+
"""""""
34
+
- Fixed issue ``generate_session_token`` to handle cases in Py38, Py39 when the ``session_token`` is already ``string`` instead of ``bytes``.
35
+
36
+
[2.0.0]
37
+
^^^^^^^
38
+
39
+
**NOTE**: The previous version of this library provided the ``security_code`` in the JWT ``session_token``. You would have to re-verify ``phone_numbers`` in *this* version to ensure they are authentically verified.
40
+
41
+
Added
42
+
"""""
43
+
44
+
- Tests added to provide 100% coverage on the package.
45
+
- Add ``nexmo.errors.ClientError`` as exception class in ``phone_verify.backends.nexmo.NexmoBackend`` & ``phone_verify.backends.nexmo.NexmoSandboxBackend``.
46
+
47
+
Changed
48
+
"""""""
49
+
50
+
- Method signature changed for ``phone_verify.backends.BaseBackend.generate_session_token``. It now accepts only ``phone_number`` instead of combination of ``phone_number`` and ``security_code``.
51
+
- Remove the ``security_code`` from JWT ``session_token`` to avoid leaking information.
52
+
- Add nonce in ``session_token`` to generate unique tokens for each ``phone_number``.
53
+
- Fixes call to ``phone_verify.backends.nexmo.NexmoBackend.send_sms`` method.
54
+
55
+
[1.1.0]
56
+
^^^^^^^
57
+
58
+
Added
59
+
"""""
60
+
61
+
- Support ``Nexmo`` as a backend service along with ``Twilio``.
62
+
- Add docs for writing a custom backend.
63
+
64
+
Changed
65
+
"""""""
66
+
67
+
- Update ``backends.base.BaseBackend.validate_security_code`` to use ``save()`` instead of ``update()`` to allow Django to emit its ``post_save()`` signal.
68
+
69
+
[1.0.0]
70
+
^^^^^^^
71
+
72
+
Added
73
+
"""""
74
+
75
+
- Add coverage report through ``coveralls``.
76
+
- Support for One-Time Passwords (OTP) using ``VERIFY_SECURITY_CODE_ONLY_ONCE`` as ``True`` in the settings.
77
+
- Script to support makemigrations for development.
78
+
- ``BaseBackend`` status now have ``SECURITY_CODE_VERIFIED`` and ``SESSION_TOKEN_INVALID`` status to support new states.
79
+
80
+
Changed
81
+
"""""""
82
+
83
+
- Rename ``TWILIO_SANDBOX_TOKEN`` to ``SANDBOX_TOKEN``.
84
+
- Fix signature for ``send_bulk_sms`` method in ``TwilioBackend`` and ``TwilioSandboxBackend``.
85
+
- Response for ``/api/phone/register`` contains key ``session_token`` instead of ``session_code``.
86
+
- Request payload for ``/api/phone/verify`` now expects ``session_token`` key instead of ``session_code``.
87
+
- Response for ``/api/phone/verify`` now sends additional response of ``Security code is already verified`` in case ``VERIFY_SECURITY_CODE_ONLY_ONCE`` is set to ``True``.
88
+
- Rename ``otp`` to ``security_code`` in code and docs to be more consistent.
89
+
- Rename ``BaseBackend`` status from ``VALID``, ``INVALID``, ``EXPIRED`` to ``SECURITY_CODE_VALID``, ``SECURITY_CODE_INVALID``, and ``SECURITY_CODE_EXPIRED`` respectively.
90
+
- Rename ``session_code`` to ``session_token`` to be consistent in code and naming across the app.
91
+
- Rename service ``send_otp_and_generate_session_code`` to ``send_security_code_and_generate_session_token``.
92
+
- Rename method ``BaseBackend.generate_token`` to ``BaseBackend.generate_security_code``.
93
+
- Rename method ``create_otp_and_session_token`` to ``create_security_code_and_session_token``.
94
+
- Rename method ``BaseBackend.validate_token`` to ``BaseBackend.validate_security_code`` with an additional parameter of ``session_token``.
95
+
96
+
[0.2.0]
97
+
^^^^^^^
98
+
99
+
Added
100
+
"""""
101
+
102
+
- ``pre-commit-config`` to maintain code quality using black and other useful tools.
103
+
- Docs for integration and usage in `getting_started.rst`_.
104
+
- Tox for testing on `py{37}-django{20,21,22}`.
105
+
- Travis CI for testing builds.
106
+
107
+
Changed
108
+
"""""""
109
+
110
+
- Convert ``*.md`` docs to reST Markup.
111
+
- Fix issue with installing required package dependencies via ``install_requires``.
112
+
113
+
[0.1.1]
114
+
^^^^^^^
115
+
116
+
Added
117
+
"""""
118
+
119
+
- README and documentation of API endpoints.
120
+
- ``setup.cfg`` to manage coverage.
121
+
- ``phone_verify`` app including backends, requirements, tests.
Copy file name to clipboardExpand all lines: README.rst
+4-120Lines changed: 4 additions & 120 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,125 +112,9 @@ Licence
112
112
113
113
GPLv3
114
114
115
-
Release Notes
116
-
-------------
117
-
118
-
[Dev]
119
-
^^^^^
120
-
121
-
Added
122
-
"""""
123
-
- Support for Python 3.11.
124
-
- CI tests for Py{311}-Django{2x,3x,4x}.
125
-
126
-
[3.0.0]
127
-
^^^^^^^
128
-
129
-
Added
130
-
"""""
131
-
- Support for Django 4.x.
132
-
- Support for Django 3.2.
133
-
134
-
Changed
135
-
"""""""
136
-
- Method ``phone_verify.backends.nexmo.NexmoBackend.send_sms`` changes parameter name from ``numbers`` to ``number`` to be consistent with rest of the inherited classes.
137
-
138
-
[2.0.1]
139
-
^^^^^^^
140
-
141
-
Added
142
-
"""""
143
-
- Support for Python 3.8 & Python 3.9.
144
-
- CI tests for Py{36,37,38,39}-Django{20,21,22,30,31}.
145
-
146
-
Changed
147
-
"""""""
148
-
- Fixed issue ``generate_session_token`` to handle cases in Py38, Py39 when the ``session_token`` is already ``string`` instead of ``bytes``.
149
-
150
-
[2.0.0]
151
-
^^^^^^^
152
-
153
-
**NOTE**: The previous version of this library provided the ``security_code`` in the JWT ``session_token``. You would have to re-verify ``phone_numbers`` in *this* version to ensure they are authentically verified.
154
-
155
-
Added
156
-
"""""
157
-
158
-
- Tests added to provide 100% coverage on the package.
159
-
- Add ``nexmo.errors.ClientError`` as exception class in ``phone_verify.backends.nexmo.NexmoBackend`` & ``phone_verify.backends.nexmo.NexmoSandboxBackend``.
160
-
161
-
Changed
162
-
"""""""
163
-
164
-
- Method signature changed for ``phone_verify.backends.BaseBackend.generate_session_token``. It now accepts only ``phone_number`` instead of combination of ``phone_number`` and ``security_code``.
165
-
- Remove the ``security_code`` from JWT ``session_token`` to avoid leaking information.
166
-
- Add nonce in ``session_token`` to generate unique tokens for each ``phone_number``.
167
-
- Fixes call to ``phone_verify.backends.nexmo.NexmoBackend.send_sms`` method.
168
-
169
-
[1.1.0]
170
-
^^^^^^^
171
-
172
-
Added
173
-
"""""
174
-
175
-
- Support ``Nexmo`` as a backend service along with ``Twilio``.
176
-
- Add docs for writing a custom backend.
177
-
178
-
Changed
179
-
"""""""
180
-
181
-
- Update ``backends.base.BaseBackend.validate_security_code`` to use ``save()`` instead of ``update()`` to allow Django to emit its ``post_save()`` signal.
182
-
183
-
[1.0.0]
184
-
^^^^^^^
185
-
186
-
Added
187
-
"""""
188
-
189
-
- Add coverage report through ``coveralls``.
190
-
- Support for One-Time Passwords (OTP) using ``VERIFY_SECURITY_CODE_ONLY_ONCE`` as ``True`` in the settings.
191
-
- Script to support makemigrations for development.
192
-
- ``BaseBackend`` status now have ``SECURITY_CODE_VERIFIED`` and ``SESSION_TOKEN_INVALID`` status to support new states.
193
-
194
-
Changed
195
-
"""""""
196
-
197
-
- Rename ``TWILIO_SANDBOX_TOKEN`` to ``SANDBOX_TOKEN``.
198
-
- Fix signature for ``send_bulk_sms`` method in ``TwilioBackend`` and ``TwilioSandboxBackend``.
199
-
- Response for ``/api/phone/register`` contains key ``session_token`` instead of ``session_code``.
200
-
- Request payload for ``/api/phone/verify`` now expects ``session_token`` key instead of ``session_code``.
201
-
- Response for ``/api/phone/verify`` now sends additional response of ``Security code is already verified`` in case ``VERIFY_SECURITY_CODE_ONLY_ONCE`` is set to ``True``.
202
-
- Rename ``otp`` to ``security_code`` in code and docs to be more consistent.
203
-
- Rename ``BaseBackend`` status from ``VALID``, ``INVALID``, ``EXPIRED`` to ``SECURITY_CODE_VALID``, ``SECURITY_CODE_INVALID``, and ``SECURITY_CODE_EXPIRED`` respectively.
204
-
- Rename ``session_code`` to ``session_token`` to be consistent in code and naming across the app.
205
-
- Rename service ``send_otp_and_generate_session_code`` to ``send_security_code_and_generate_session_token``.
206
-
- Rename method ``BaseBackend.generate_token`` to ``BaseBackend.generate_security_code``.
207
-
- Rename method ``create_otp_and_session_token`` to ``create_security_code_and_session_token``.
208
-
- Rename method ``BaseBackend.validate_token`` to ``BaseBackend.validate_security_code`` with an additional parameter of ``session_token``.
209
-
210
-
[0.2.0]
211
-
^^^^^^^
212
-
213
-
Added
214
-
"""""
215
-
216
-
- ``pre-commit-config`` to maintain code quality using black and other useful tools.
217
-
- Docs for integration and usage in `getting_started.rst`_.
218
-
- Tox for testing on `py{37}-django{20,21,22}`.
219
-
- Travis CI for testing builds.
220
-
221
-
Changed
222
-
"""""""
223
-
224
-
- Convert ``*.md`` docs to reST Markup.
225
-
- Fix issue with installing required package dependencies via ``install_requires``.
226
-
227
-
[0.1.1]
228
-
^^^^^^^
115
+
Changelog
116
+
---------
229
117
230
-
Added
231
-
"""""
118
+
See `changelog.rst`_
232
119
233
-
- README and documentation of API endpoints.
234
-
- ``setup.cfg`` to manage coverage.
235
-
- ``phone_verify`` app including backends, requirements, tests.
0 commit comments