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

Merge to develop to final release #228

Merged
merged 96 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
1c4ef84
refactor: start from scratch
thetutlage Oct 7, 2023
c12823d
chore: update dot ignore files
thetutlage Oct 7, 2023
f47a5ab
feat: implement core pieces of auth
thetutlage Oct 11, 2023
b4e0846
refactor: move symbols and errors out of core
thetutlage Oct 12, 2023
c47f5e8
feat: initial setup to test package in a app
thetutlage Oct 13, 2023
929e6f4
chore: add peer dependencies
thetutlage Oct 13, 2023
317601f
refactor: remove client option from db providers
thetutlage Oct 23, 2023
564987d
feat: finish base implementations and session guard
thetutlage Oct 23, 2023
8195845
chore: export auth provider and auth service
thetutlage Oct 23, 2023
4f5421b
feat: wip configure process
thetutlage Oct 24, 2023
2ccd967
chore: update peer dependencies range
thetutlage Oct 24, 2023
2e8c3b3
refactor: list of published files
thetutlage Oct 24, 2023
fe8abf9
chore(release): 9.0.0-0
thetutlage Oct 24, 2023
ed30d5e
fix: broken export path for types
thetutlage Oct 24, 2023
ab2ef9d
fix: broken infer types helper
thetutlage Oct 24, 2023
db93550
feat: proper error handling
thetutlage Oct 25, 2023
e2f20fc
feat: finish configure command
thetutlage Oct 25, 2023
8e9dfbc
fix: typing issues
thetutlage Oct 25, 2023
27b3e76
chore(release): 9.0.0-1
thetutlage Oct 25, 2023
530a66b
feat: add option to configure session guard
thetutlage Oct 25, 2023
72ef761
feat: allow configuring login route
thetutlage Oct 25, 2023
e8b7f82
fix: typing issues
thetutlage Oct 25, 2023
df2c8a5
chore(release): 9.0.0-3
thetutlage Oct 25, 2023
0cab536
refactor: remove session guard configuure instructions
thetutlage Oct 25, 2023
4c1fd71
refactor: move auth and guest middleware to stubs and publish them
thetutlage Oct 25, 2023
5938258
feat: implement session.logout
thetutlage Oct 25, 2023
3a3b0ed
feat: add getUserOrFail method to authenticator
thetutlage Oct 25, 2023
53ce132
chore(release): 9.0.0-4
thetutlage Oct 25, 2023
ab0735d
refactor: simplify initial setup
thetutlage Oct 25, 2023
f5809fd
refactor: small fixes
thetutlage Oct 26, 2023
421780b
refactor: export exception classes from main entrypoint
thetutlage Oct 26, 2023
d43d89b
chore(release): 9.0.0-5
thetutlage Oct 26, 2023
2fb7b72
feat: add api client integration
thetutlage Oct 27, 2023
008d89d
refactor: remove unused imports
thetutlage Oct 27, 2023
b725427
chore(release): 9.0.0-6
thetutlage Oct 27, 2023
cdcefff
feat: implement basic auth guard
thetutlage Oct 27, 2023
4690505
test: improve tests coverage
thetutlage Oct 27, 2023
c61447f
feat: add browser client plugin
thetutlage Oct 27, 2023
18709e5
chore(release): 9.0.0-7
thetutlage Oct 27, 2023
722ae47
refactor: remove loginRoute from auth config
thetutlage Oct 30, 2023
d9a7aa7
chore: fix breaking build
thetutlage Oct 30, 2023
fc1a360
chore(release): 9.0.0-8
thetutlage Oct 30, 2023
6534a98
chore: update dependencies
thetutlage Nov 27, 2023
e41c421
fix: implement withGuard method on browser client plugin
thetutlage Nov 27, 2023
5ca5cf3
chore(release): 9.0.0-9
thetutlage Nov 27, 2023
24dedf7
refactor: use preset for configure hook
thetutlage Dec 26, 2023
7275fd4
refactor: use session.flashError method to flash auth errors
thetutlage Dec 26, 2023
d13572b
refactor: pass HttpContext with all auth events
thetutlage Dec 26, 2023
c9398e3
ci: update node versions
thetutlage Dec 26, 2023
3717a83
chore(release): 9.0.0-10
thetutlage Dec 26, 2023
743c79a
chore: update dependencies
thetutlage Jan 11, 2024
e05bc46
feat: prevent timing attacks during verifyCredentials or attempt meth…
thetutlage Jan 11, 2024
2c76eb8
refactor: simplify providers part of core primitives
thetutlage Jan 11, 2024
b2a8f48
refactor: cleanup session guard implementation
thetutlage Jan 11, 2024
5ceac4f
refactor: update debug calls
thetutlage Jan 11, 2024
d11d1ca
feat: clean and initiate opaque tokens implementation
thetutlage Jan 11, 2024
8cfd777
refactor: temporary remove opaque tokens
thetutlage Jan 11, 2024
64d26dd
refactor: improve authenticator api to be more reliable
thetutlage Jan 11, 2024
574885e
refactor: remove database user provider
thetutlage Jan 11, 2024
24a555b
feat: add getUserForAuth hook in lucid provider
thetutlage Jan 11, 2024
f5c83c0
refactor: cleanup core workings of auth
thetutlage Jan 11, 2024
42ce34c
refactor: simplify session guard
thetutlage Jan 12, 2024
17bb572
feat: implement attempt, loginViaId and login methods
thetutlage Jan 12, 2024
c5c2f90
feat: implement logout method
thetutlage Jan 12, 2024
71083a3
feat: implement session user provider base methods
thetutlage Jan 12, 2024
2330b1c
feat: implement remember tokens API in session lucid user provider
thetutlage Jan 12, 2024
8f20283
refactor: define session guard exports
thetutlage Jan 12, 2024
66d90a3
refactor: simplify storage of remember me tokens
thetutlage Jan 12, 2024
8fbdb27
feat: implement authentication methods for access tokens guard
thetutlage Jan 13, 2024
e314f50
refactor: cleanup code as everything was mess in the momment
thetutlage Jan 14, 2024
2bce165
feat: implement access tokens guard
thetutlage Jan 15, 2024
ec09d6e
feat: implement db access tokens provider
thetutlage Jan 15, 2024
263467f
feat: finish access tokens user provider
thetutlage Jan 15, 2024
59c6d78
feat: implement withAuthFinder mixin
thetutlage Jan 15, 2024
d8a3a77
feat: write tests for japa api clients
thetutlage Jan 16, 2024
7bbe9a7
test: fix breaking tests
thetutlage Jan 16, 2024
7c92c3f
feat: add config helpers for access tokens guard
thetutlage Jan 16, 2024
9f1a0fa
feat: add current access token property on authenticated user
thetutlage Jan 17, 2024
724e643
fix: middleware to use internal imports and containerResolver
thetutlage Jan 17, 2024
24c7744
refactor: make japa plugins infer params from authenticateAsClient me…
thetutlage Jan 17, 2024
2520439
feat: add access_tokens driver error responder
thetutlage Jan 17, 2024
2e43db9
test: fix types issue
thetutlage Jan 17, 2024
9d085b5
feat: add authorize method to access token
thetutlage Jan 17, 2024
1eaf3d9
feat: add serialization to access token
thetutlage Jan 17, 2024
7dc935a
feat: add name property on access token
thetutlage Jan 17, 2024
85f018e
feat: assign name to access tokens
thetutlage Jan 17, 2024
b283cca
refactor: rename defineConfig helpers to match docs
thetutlage Jan 17, 2024
9491260
refactor: rename define config helpers
thetutlage Jan 18, 2024
6e3d2cb
refactor: fix typing errors
thetutlage Jan 18, 2024
3bfc1be
feat: implement remember me tokens provider
thetutlage Jan 18, 2024
c0da601
test: add tests for remember me token
thetutlage Jan 18, 2024
06e8f1d
feat: implement session guard providers and authenticator
thetutlage Jan 18, 2024
3fcc975
test: improve tests coverage
thetutlage Jan 18, 2024
0f41649
feat(session_guard): implement login and logout methods
thetutlage Jan 18, 2024
e9d198e
feat: define session guard exports
thetutlage Jan 18, 2024
3ca7beb
chore: create bundle using tsup
thetutlage Jan 18, 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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

70 changes: 0 additions & 70 deletions .github/COMMIT_CONVENTION.md

This file was deleted.

29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

170 changes: 170 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
[
{
"name": "Priority: Critical",
"color": "ea0056",
"description": "The issue needs urgent attention",
"aliases": []
},
{
"name": "Priority: High",
"color": "5666ed",
"description": "Look into this issue before picking up any new work",
"aliases": []
},
{
"name": "Priority: Medium",
"color": "f4ff61",
"description": "Try to fix the issue for the next patch/minor release",
"aliases": []
},
{
"name": "Priority: Low",
"color": "87dfd6",
"description": "Something worth considering, but not a top priority for the team",
"aliases": []
},
{
"name": "Semver: Alpha",
"color": "008480",
"description": "Will make it's way to the next alpha version of the package",
"aliases": []
},
{
"name": "Semver: Major",
"color": "ea0056",
"description": "Has breaking changes",
"aliases": []
},
{
"name": "Semver: Minor",
"color": "fbe555",
"description": "Mainly new features and improvements",
"aliases": []
},
{
"name": "Semver: Next",
"color": "5666ed",
"description": "Will make it's way to the bleeding edge version of the package",
"aliases": []
},
{
"name": "Semver: Patch",
"color": "87dfd6",
"description": "A bug fix",
"aliases": []
},
{
"name": "Status: Abandoned",
"color": "ffffff",
"description": "Dropped and not into consideration",
"aliases": ["wontfix"]
},
{
"name": "Status: Accepted",
"color": "e5fbf2",
"description": "The proposal or the feature has been accepted for the future versions",
"aliases": []
},
{
"name": "Status: Blocked",
"color": "ea0056",
"description": "The work on the issue or the PR is blocked. Check comments for reasoning",
"aliases": []
},
{
"name": "Status: Completed",
"color": "008672",
"description": "The work has been completed, but not released yet",
"aliases": []
},
{
"name": "Status: In Progress",
"color": "73dbc4",
"description": "Still banging the keyboard",
"aliases": ["in progress"]
},
{
"name": "Status: On Hold",
"color": "f4ff61",
"description": "The work was started earlier, but is on hold now. Check comments for reasoning",
"aliases": ["On Hold"]
},
{
"name": "Status: Review Needed",
"color": "fbe555",
"description": "Review from the core team is required before moving forward",
"aliases": []
},
{
"name": "Status: Awaiting More Information",
"color": "89f8ce",
"description": "Waiting on the issue reporter or PR author to provide more information",
"aliases": []
},
{
"name": "Status: Need Contributors",
"color": "7057ff",
"description": "Looking for contributors to help us move forward with this issue or PR",
"aliases": []
},
{
"name": "Type: Bug",
"color": "ea0056",
"description": "The issue has indentified a bug",
"aliases": ["bug"]
},
{
"name": "Type: Security",
"color": "ea0056",
"description": "Spotted security vulnerability and is a top priority for the core team",
"aliases": []
},
{
"name": "Type: Duplicate",
"color": "00837e",
"description": "Already answered or fixed previously",
"aliases": ["duplicate"]
},
{
"name": "Type: Enhancement",
"color": "89f8ce",
"description": "Improving an existing feature",
"aliases": ["enhancement"]
},
{
"name": "Type: Feature Request",
"color": "483add",
"description": "Request to add a new feature to the package",
"aliases": []
},
{
"name": "Type: Invalid",
"color": "dbdbdb",
"description": "Doesn't really belong here. Maybe use discussion threads?",
"aliases": ["invalid"]
},
{
"name": "Type: Question",
"color": "eceafc",
"description": "Needs clarification",
"aliases": ["help wanted", "question"]
},
{
"name": "Type: Documentation Change",
"color": "7057ff",
"description": "Documentation needs some improvements",
"aliases": ["documentation"]
},
{
"name": "Type: Dependencies Update",
"color": "00837e",
"description": "Bump dependencies",
"aliases": ["dependencies"]
},
{
"name": "Good First Issue",
"color": "008480",
"description": "Want to contribute? Just filter by this label",
"aliases": ["good first issue"]
}
]
4 changes: 2 additions & 2 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ daysUntilClose: 7

# Issues with these labels will never be considered stale
exemptLabels:
- "Type: Security"
- 'Type: Security'

# Label to use when marking an issue as stale
staleLabel: "Status: Abandoned"
staleLabel: 'Status: Abandoned'

# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
Expand Down
Loading
Loading