Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,6 @@ website/.docusaurus

# Generated from testing
/test/fixtures/test-package/package-lock.json

# tsoa generated files (regenerated by `npm run build-tsoa`)
src/service/generatedRoutes.ts
2 changes: 1 addition & 1 deletion docs/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ Allows defining ways to authenticate to the API. This is useful for securing cus

If `apiAuthentication` is left empty, API endpoints will be publicly accesible.

Currently, only JWT auth is supported. This is implemented via the [`jwtAuthHandler` middleware](/src/service/passport/jwtAuthHandler.ts). Aside of validating incoming access tokens, it can also assign roles based on the token payload.
Currently, only JWT auth is supported. This is implemented via the [`@Security('jwt')` decorator](/src/service/authentication.ts). Aside of validating incoming access tokens, it can also assign roles based on the token payload.

##### Setting up JWT Authentication

Expand Down
Loading
Loading