authelia/internal
Amir Zarrinkafsh 3487fd392e
[FEATURE] Add API docs and swagger-ui (#1544)
* [FEATURE] Add API docs and swagger-ui

This change will serve out swagger-ui at the `/api/` root path.

* Update descriptions and summaries in API spec

* Utilise frontend assets from unit testing for Docker build steps

* Fix tag for /api/user/* endpoints

* Fix response schema for /api/user/info/2fa_method

* Template and inject the session name during runtime into swagger-ui

This change also factorises and renames index.go into template.go, this can now be generically utilised to template any file.

* Fix integration tests

* Add U2F endpoints

* Change swagger directory to api

This change is to more closely conform to the golang-standards project layout.

* Add authentication for u2f endpoints

* Modify u2f endpoint descriptions

* Rename and fix u2f 2fa sign endpoints

* Fix request body for /api/secondfactor/u2f/sign endpoint

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-01-03 15:28:46 +11:00
..
authentication [FEATURE] LDAP StartTLS (#1500) 2020-12-03 16:23:52 +11:00
authorization [FEATURE] Support for subject combinations in ACLs (#1142) 2020-06-25 18:22:42 +10:00
commands [MISC] Address errors from linter updates (#1308) 2020-09-04 13:20:17 +10:00
configuration [CI] Update QEMU to v5.2.0-1 (#1567) 2020-12-30 07:23:24 +11:00
duo [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
handlers [MISC] Refactor and address most errcheck linter ignores (#1511) 2020-12-16 12:47:31 +11:00
logging [FEATURE] Add JSON log formatting option (#1488) 2020-11-25 10:46:41 +11:00
middlewares [FEATURE] Plain Text Email Notifications (#1238) 2020-08-21 12:16:23 +10:00
mocks [FEATURE] Plain Text Email Notifications (#1238) 2020-08-21 12:16:23 +10:00
models [MISC] Implement golint recommendations (#885) 2020-04-20 23:03:38 +02:00
notification [MISC] Consistently utilise correct logging interface (#1487) 2020-11-25 09:54:36 +11:00
regulation [CI] Add wsl linter (#980) 2020-05-05 21:35:32 +02:00
server [FEATURE] Add API docs and swagger-ui (#1544) 2021-01-03 15:28:46 +11:00
session [BUGFIX] Static Session Expiration Key (#1564) 2020-12-29 12:44:47 +11:00
storage [CI] Update QEMU to v5.1.0-2 (#1321) 2020-09-18 22:05:43 +10:00
suites [FEATURE] Display TOTP secret on device registration (#1551) 2020-12-29 13:30:00 +11:00
templates [FEATURE] Plain Text Email Notifications (#1238) 2020-08-21 12:16:23 +10:00
utils [MISC] Catch OpenLDAP ppolicy error (#1508) 2020-12-16 12:30:03 +11:00