Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth v3 #26

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
10084cb
feat: update config
mychidarko Oct 19, 2024
5de02ab
feat: rewrite auth to match new documentation
mychidarko Oct 21, 2024
e49670c
chore: generate actions
mychidarko Oct 21, 2024
25715dd
chore: update alchemy
mychidarko Oct 21, 2024
745b325
chore: update test db credentials
mychidarko Oct 21, 2024
2599cba
chore: update test db credentials
mychidarko Oct 21, 2024
d48cb50
chore: update test db credentials
mychidarko Oct 21, 2024
60d314c
chore: update test db credentials
mychidarko Oct 21, 2024
7b55355
chore: update test db credentials
mychidarko Oct 21, 2024
9e8cf71
chore: update alchemy file
mychidarko Oct 21, 2024
b7ed64a
test: update db connection
mychidarko Oct 21, 2024
252c287
test: update db connection
mychidarko Oct 21, 2024
e23c7ac
feat: implement user layer + registration
mychidarko Oct 25, 2024
e473d48
feat: implement login and hidden fields
mychidarko Oct 25, 2024
324dc1e
feat: rework user + auth flows
mychidarko Oct 27, 2024
9c7d08a
feat: add support for uniques
mychidarko Oct 27, 2024
390e2ca
feat: add support for user relations
mychidarko Oct 27, 2024
efedbc1
test: update tests
mychidarko Oct 27, 2024
957aff2
feat: add support for leaf middleware
mychidarko Oct 27, 2024
ae43d70
feat: add logout implementation
mychidarko Oct 31, 2024
44db12a
chore: disable roles
mychidarko Oct 31, 2024
36c5a2f
test: refactor test-user from tests
mychidarko Oct 31, 2024
3df88c6
chore: generate actions from alchemy
mychidarko Oct 31, 2024
09eb3ed
chore: fix styling
mychidarko Oct 31, 2024
44dfa9d
test: update tests
mychidarko Oct 31, 2024
9d965dc
test: update tests
mychidarko Oct 31, 2024
ececd79
test: update test setup
mychidarko Oct 31, 2024
8322bc5
test: update db.table config
mychidarko Oct 31, 2024
fb68b70
fix: patch up encode running on false password.key
mychidarko Oct 31, 2024
55d02bd
fix: patch up ?? throw for 7.4
mychidarko Oct 31, 2024
95e4636
chore: remove test action
mychidarko Nov 2, 2024
33400b8
chore: update alchemy version
mychidarko Nov 6, 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
4 changes: 0 additions & 4 deletions .github/FUNDING.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint code

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, zip, dom, curl, libxml, mbstring
tools: composer:v2
coverage: none

- name: Install PHP dependencies
run: composer update --no-interaction --no-progress

- name: Run Linter
run: composer run lint

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: fix styling'
43 changes: 0 additions & 43 deletions .github/workflows/tests.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ composer.lock
package-lock.json
vendor/
test/
old/
*.tests.php
workflows
!.github/workflows

# OS Generated
.DS_Store*
Expand All @@ -18,3 +17,7 @@ Thumbs.db

# phpstorm
.idea/*

# Alchemy
.alchemy
.phpunit.result.cache
26 changes: 0 additions & 26 deletions alchemy.config.php

This file was deleted.

35 changes: 35 additions & 0 deletions alchemy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
app:
- src

tests:
engine: pest
parallel: true
paths:
- tests
files:
- '*.test.php'

lint:
preset: PSR12
rules:
no_unused_imports: true
not_operator_with_successor_space: false
single_quote: true

actions:
run:
- lint
- tests
os:
- ubuntu-latest
php:
extensions: json, zip, dom, curl, libxml, mbstring, PDO_PGSQL
versions:
- '8.3'
- '8.2'
- '8.1'
- '8.0'
- '7.4'
events:
- push
- pull_request
19 changes: 12 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,34 @@
"Leaf\\": "src"
},
"files": [
"src/functions.php"
]
"src/functions.php"
]
},
"minimum-stability": "stable",
"prefer-stable": true,
"prefer-stable": true,
"require": {
"leafs/date": "*",
"leafs/password": "*",
"leafs/session": "*",
"leafs/db": "*",
"leafs/form": "*",
"leafs/http": "*"
"leafs/http": "*",
"firebase/php-jwt": "^6.10"
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"require-dev": {
"leafs/alchemy": "^1.0",
"pestphp/pest": "^1.0 | ^2.0"
"pestphp/pest": "^1.0 | ^2.0",
"friendsofphp/php-cs-fixer": "^3.64",
"leafs/alchemy": "^2.0"
},
"scripts": {
"test": "vendor/bin/pest --colors=always --coverage"
"test": "./vendor/bin/alchemy setup --test",
"alchemy": "./vendor/bin/alchemy setup",
"lint": "./vendor/bin/alchemy setup --lint",
"actions": "./vendor/bin/alchemy setup --actions"
}
}
18 changes: 0 additions & 18 deletions phpunit.xml

This file was deleted.

Loading
Loading