Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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