Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jogemu/phpasskey
Concise passkey authentication for php with mysql.
https://github.com/jogemu/phpasskey
mysql passkeys php
Last synced: about 2 months ago
JSON representation
Concise passkey authentication for php with mysql.
- Host: GitHub
- URL: https://github.com/jogemu/phpasskey
- Owner: jogemu
- License: unlicense
- Created: 2024-05-02T12:42:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-05T16:09:43.000Z (8 months ago)
- Last Synced: 2024-06-05T18:08:25.180Z (8 months ago)
- Topics: mysql, passkeys, php
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpasskey
Concise passkey authentication for php with mysql. Only uses cookies once the login process begins.
## Setup
Adjust the mysql credentials at the beginning of the file and create the following table.
```sql
CREATE TABLE `passkeys` (
`passkey` varbinary(32) PRIMARY KEY,
`alg` smallint,
`pub` varbinary(294),
`user` int,
`label` varchar(64)
)
```Once you modified the login page and domain and username logic to your liking (marked with TODO) any php file can require a login by starting with:
```php