Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
83008e7
Moved passkeys templates to passkeys subdirectory
smark-1 Nov 2, 2023
6e1eb5b
Removed jquery dependency, Upgraded bootstrap to version 5.3
smark-1 Nov 2, 2023
d77422d
Removed jquery dependency, Upgraded bootstrap to version 5.3
smark-1 Nov 2, 2023
bdab4a8
Merge remote-tracking branch 'origin/main'
smark-1 Nov 2, 2023
64189ee
POST methods are required for toggling and deleting key.
smark-1 Nov 2, 2023
2bab94d
Used local bootstrap-toggle js and css files
smark-1 Nov 2, 2023
2fbc6a9
Fixed Tests
smark-1 Nov 8, 2023
5a4f2c2
Merge branch 'mkalioby:main' into main
smark-1 Nov 15, 2023
506e3b8
Make files lowercase
smark-1 Sep 4, 2024
279ea0c
Merge branch 'mkalioby:main' into main
smark-1 Sep 4, 2024
df5ab3f
update contributors
smark-1 Sep 4, 2024
ac20438
Remove sourceMappingURL
smark-1 Sep 8, 2024
9f66b5b
v2.0b1
mkalioby Sep 27, 2024
defca7a
Updated coverage.svg
github-actions[bot] Sep 27, 2024
f610de0
Moved tests into the passkeys package
christian-thieme Nov 5, 2024
ac489f6
Created runtests.py to run tests without example project
christian-thieme Nov 5, 2024
928b738
tox.ini adapted to runtests.py
christian-thieme Nov 5, 2024
5447fb6
fido test fixed which failed only when using tox
christian-thieme Nov 5, 2024
7f0406b
Update basic checks
mkalioby Nov 13, 2024
ee52c92
Update basic checks
mkalioby Nov 13, 2024
63d653e
Updated coverage.svg
github-actions[bot] Nov 13, 2024
70c5edc
More fixes
mkalioby Nov 13, 2024
e22becf
Merge branch 'christian-thieme-test-refactoring' of github.com:mkalio…
mkalioby Nov 13, 2024
04057a2
Updated coverage.svg
github-actions[bot] Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .github/workflows/basic_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,14 @@ jobs:
python setup.py install
pip install -r requirements.txt
pip install -r requirements_test.txt
- name: Run Migrations
run: |
cd example
python manage.py migrate
- name: Run Tests
run: |
cd example
coverage run manage.py test
coverage run runtests.py
coverage report
- name: Coverage Badge
uses: tj-actions/coverage-badge-py@v2
with:
working-directory: example
output: ../coverage.svg
output: coverage.svg

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v14
Expand All @@ -46,7 +40,6 @@ jobs:
- name: Commit files
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
#mv example/coverage.svg coverage.svg
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add coverage.svg
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 2.0

This is backward incompatible version, as the templates moved to `passkeys` folder
and the names are lowercase now. please check the README.md for more details.

* Upgraded the FIDO2 dependency to be >1.1.1.
* Added `login_required` to some functions
* `delKey` accepts POST now not GET.

Thanks for [smark-1](https://github.com/smark-1) and [rafaelurben](https://github.com/rafaelurben) for the work done in the release



## v1.2.7

* Fix: issue if the user isn't defined by username field #25.
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Currently, it support Django 2.0+, Python 3.7+
6. To match the look and feel of your project, Passkeys includes `base.html` but it needs blocks named `head` & `content` to added its content to it.
**Notes:**

1. You can override `PassKeys_base.html` which is used by `Passkeys.html` so you can control the styling better and current `Passkeys_base.html` extends `base.html`
1. Currently, `PassKeys_base.html` needs JQuery and bootstrap.
1. You can override `passkeys/passkeys_base.html` which is used by `passkeys/passkeys.html` so you can control the styling better and current `passkeys/passkeys_base.html` extends `base.html`
1. Currently, `passkeys/passkeys_base.html` needs bootstrap 5.

7. Somewhere in your app, add a link to 'passkeys:home'
```<li><a href="{% url 'passkeys:home' %}">Passkeys</a> </li>```
Expand All @@ -79,7 +79,7 @@ Currently, it support Django 2.0+, Python 3.7+
```html
<input type="hidden" name="passkeys" id="passkeys"/>
<button class="btn btn-block btn-dark" type="button" onclick="authn('loginForm')"><img src="{% static 'passkeys/imgs/FIDO-Passkey_Icon-White.png' %}" style="width: 24px"></button>
{%include 'passkeys.js' %}
{%include 'passkeys/passkeys.js' %}
```
For Example, See 'example' app and look at EXAMPLE.md to see how to set it up.

Expand Down Expand Up @@ -107,7 +107,7 @@ function register_pk()
{
$('#pk').show();
}
{% include 'check_passkeys.js'%}
{% include 'passkeys/check_passkeys.js'%}
$(document).ready(check_passkey(true,register_pk))
</script>
```
Expand Down Expand Up @@ -147,6 +147,9 @@ Tidelift will coordinate the fix and disclosure.
* [jacopsd](https://github.com/jacopsd)
* [gasparbrogueira](https://github.com/gasparbrogueira)
* [pulse-mind](https://github.com/pulse-mind)
* [smark-1](https://github.com/smark-1)
* [rafaelurben](https://github.com/rafaelurben)
* [christian-thieme](https://github.com/christian-thieme)



Expand Down
4 changes: 2 additions & 2 deletions coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 0 additions & 40 deletions example/static/js/sb-admin.js

This file was deleted.

7 changes: 0 additions & 7 deletions example/static/js/sb-admin.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/static/vendor/bootstrap/js/bootstrap.bundle.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/static/vendor/bootstrap/js/bootstrap.bundle.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/static/vendor/bootstrap/js/bootstrap.min.js

Large diffs are not rendered by default.

59 changes: 0 additions & 59 deletions example/static/vendor/jquery-easing/jquery.easing.compatibility.js

This file was deleted.

166 changes: 0 additions & 166 deletions example/static/vendor/jquery-easing/jquery.easing.js

This file was deleted.

1 change: 0 additions & 1 deletion example/static/vendor/jquery-easing/jquery.easing.min.js

This file was deleted.

Loading