@tinyrack/tinyauth-server 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/oauth-client.entity.d.ts +27 -0
- package/dist/entities/oauth-client.entity.d.ts.map +1 -1
- package/dist/entities/oauth-code.entity.d.ts +27 -0
- package/dist/entities/oauth-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-device-code.entity.d.ts +27 -0
- package/dist/entities/oauth-device-code.entity.d.ts.map +1 -1
- package/dist/entities/oauth-device-code.entity.js +12 -0
- package/dist/entities/oauth-device-code.entity.js.map +1 -1
- package/dist/entities/revoked-token.entity.d.ts +27 -0
- package/dist/entities/revoked-token.entity.d.ts.map +1 -1
- package/dist/entities/user-consent.entity.d.ts +27 -0
- package/dist/entities/user-consent.entity.d.ts.map +1 -1
- package/dist/entrypoints/app.d.ts +325 -16
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/app.js +33 -7
- package/dist/entrypoints/app.js.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts +16 -7
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js +183 -39
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +16 -7
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js +183 -39
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/lib/config/admin.d.ts +9 -0
- package/dist/lib/config/admin.d.ts.map +1 -0
- package/dist/lib/config/admin.js +13 -0
- package/dist/lib/config/admin.js.map +1 -0
- package/dist/lib/config/auth.d.ts +85 -0
- package/dist/lib/config/auth.d.ts.map +1 -1
- package/dist/lib/config/auth.js +61 -0
- package/dist/lib/config/auth.js.map +1 -1
- package/dist/lib/config/client.d.ts +20 -0
- package/dist/lib/config/client.d.ts.map +1 -1
- package/dist/lib/config/client.js +14 -0
- package/dist/lib/config/client.js.map +1 -1
- package/dist/lib/config/index.d.ts +2 -0
- package/dist/lib/config/index.d.ts.map +1 -1
- package/dist/lib/config/index.js +1 -0
- package/dist/lib/config/index.js.map +1 -1
- package/dist/lib/config/resolved.d.ts +40 -0
- package/dist/lib/config/resolved.d.ts.map +1 -1
- package/dist/lib/config/resolved.js +2 -0
- package/dist/lib/config/resolved.js.map +1 -1
- package/dist/lib/config/server.d.ts.map +1 -1
- package/dist/lib/config/server.js +12 -0
- package/dist/lib/config/server.js.map +1 -1
- package/dist/lib/swagger-tags.d.ts +1 -0
- package/dist/lib/swagger-tags.d.ts.map +1 -1
- package/dist/lib/swagger-tags.js +1 -0
- package/dist/lib/swagger-tags.js.map +1 -1
- package/dist/middleware/auth.d.ts +3 -0
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +26 -0
- package/dist/middleware/auth.js.map +1 -1
- package/dist/middleware/session.d.ts +33 -1
- package/dist/middleware/session.d.ts.map +1 -1
- package/dist/middleware/session.js +84 -3
- package/dist/middleware/session.js.map +1 -1
- package/dist/migrations/postgres/Migration20260624190500_add_oauth_device_denied_at.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260624190500_add_oauth_device_denied_at.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260624190500_add_oauth_device_denied_at.js +11 -0
- package/dist/migrations/postgres/Migration20260624190500_add_oauth_device_denied_at.js.map +1 -0
- package/dist/migrations/postgres/Migration20260624223000_add_oauth_device_poll_state.d.ts +6 -0
- package/dist/migrations/postgres/Migration20260624223000_add_oauth_device_poll_state.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260624223000_add_oauth_device_poll_state.js +14 -0
- package/dist/migrations/postgres/Migration20260624223000_add_oauth_device_poll_state.js.map +1 -0
- package/dist/migrations/postgres/index.d.ts.map +1 -1
- package/dist/migrations/postgres/index.js +4 -0
- package/dist/migrations/postgres/index.js.map +1 -1
- package/dist/migrations/sqlite/Migration20260624190500_add_oauth_device_denied_at.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260624190500_add_oauth_device_denied_at.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260624190500_add_oauth_device_denied_at.js +10 -0
- package/dist/migrations/sqlite/Migration20260624190500_add_oauth_device_denied_at.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260624223000_add_oauth_device_poll_state.d.ts +6 -0
- package/dist/migrations/sqlite/Migration20260624223000_add_oauth_device_poll_state.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260624223000_add_oauth_device_poll_state.js +12 -0
- package/dist/migrations/sqlite/Migration20260624223000_add_oauth_device_poll_state.js.map +1 -0
- package/dist/migrations/sqlite/index.d.ts.map +1 -1
- package/dist/migrations/sqlite/index.js +4 -0
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/oauth-device-code.repository.d.ts +4 -0
- package/dist/repositories/oauth-device-code.repository.d.ts.map +1 -1
- package/dist/repositories/oauth-device-code.repository.js +19 -0
- package/dist/repositories/oauth-device-code.repository.js.map +1 -1
- package/dist/repositories/user.repository.d.ts +4 -2
- package/dist/repositories/user.repository.d.ts.map +1 -1
- package/dist/repositories/user.repository.js +11 -7
- package/dist/repositories/user.repository.js.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/.well-known/openid-configuration/get.js +4 -0
- package/dist/routes/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/api/admin/index.d.ts +185 -0
- package/dist/routes/api/admin/index.d.ts.map +1 -0
- package/dist/routes/api/admin/index.js +13 -0
- package/dist/routes/api/admin/index.js.map +1 -0
- package/dist/routes/api/admin/me/get.d.ts +26 -0
- package/dist/routes/api/admin/me/get.d.ts.map +1 -0
- package/dist/routes/api/admin/me/get.js +29 -0
- package/dist/routes/api/admin/me/get.js.map +1 -0
- package/dist/routes/api/admin/users/index.d.ts +162 -0
- package/dist/routes/api/admin/users/index.d.ts.map +1 -0
- package/dist/routes/api/admin/users/index.js +166 -0
- package/dist/routes/api/admin/users/index.js.map +1 -0
- package/dist/routes/api/auth/accounts/get.d.ts +28 -0
- package/dist/routes/api/auth/accounts/get.d.ts.map +1 -0
- package/dist/routes/api/auth/accounts/get.js +47 -0
- package/dist/routes/api/auth/accounts/get.js.map +1 -0
- package/dist/routes/api/auth/accounts/remove.post.d.ts +30 -0
- package/dist/routes/api/auth/accounts/remove.post.d.ts.map +1 -0
- package/dist/routes/api/auth/accounts/remove.post.js +30 -0
- package/dist/routes/api/auth/accounts/remove.post.js.map +1 -0
- package/dist/routes/api/auth/accounts/select.post.d.ts +31 -0
- package/dist/routes/api/auth/accounts/select.post.d.ts.map +1 -0
- package/dist/routes/api/auth/accounts/select.post.js +26 -0
- package/dist/routes/api/auth/accounts/select.post.js.map +1 -0
- package/dist/routes/api/auth/email/verify/post.d.ts +1 -0
- package/dist/routes/api/auth/email/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/index.d.ts +86 -0
- package/dist/routes/api/auth/index.d.ts.map +1 -1
- package/dist/routes/api/auth/index.js +6 -0
- package/dist/routes/api/auth/index.js.map +1 -1
- package/dist/routes/api/auth/login/post.d.ts +1 -0
- package/dist/routes/api/auth/login/post.d.ts.map +1 -1
- package/dist/routes/api/auth/login/post.js +15 -16
- package/dist/routes/api/auth/login/post.js.map +1 -1
- package/dist/routes/api/auth/passkey/verify/post.d.ts +1 -0
- package/dist/routes/api/auth/passkey/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/register/post.d.ts +1 -0
- package/dist/routes/api/auth/register/post.d.ts.map +1 -1
- package/dist/routes/api/auth/totp/recovery/verify/post.d.ts +1 -0
- package/dist/routes/api/auth/totp/recovery/verify/post.d.ts.map +1 -1
- package/dist/routes/api/auth/totp/verify/post.d.ts +1 -0
- package/dist/routes/api/auth/totp/verify/post.d.ts.map +1 -1
- package/dist/routes/api/config/get.d.ts +3 -0
- package/dist/routes/api/config/get.d.ts.map +1 -1
- package/dist/routes/api/config/get.js +7 -1
- package/dist/routes/api/config/get.js.map +1 -1
- package/dist/routes/api/config/index.d.ts +3 -0
- package/dist/routes/api/config/index.d.ts.map +1 -1
- package/dist/routes/api/consent/index.d.ts +10 -0
- package/dist/routes/api/consent/index.d.ts.map +1 -1
- package/dist/routes/api/consent/post.d.ts +10 -0
- package/dist/routes/api/consent/post.d.ts.map +1 -1
- package/dist/routes/api/consent/post.js +52 -1
- package/dist/routes/api/consent/post.js.map +1 -1
- package/dist/routes/api/index.d.ts +310 -26
- package/dist/routes/api/index.d.ts.map +1 -1
- package/dist/routes/api/index.js +2 -0
- package/dist/routes/api/index.js.map +1 -1
- package/dist/routes/api/user/index.d.ts +3 -0
- package/dist/routes/api/user/index.d.ts.map +1 -1
- package/dist/routes/api/user/passkeys/register/verify/post.d.ts +1 -0
- package/dist/routes/api/user/passkeys/register/verify/post.d.ts.map +1 -1
- package/dist/routes/api/user/session/get.d.ts +1 -0
- package/dist/routes/api/user/session/get.d.ts.map +1 -1
- package/dist/routes/api/user/totp/confirm/post.d.ts +1 -0
- package/dist/routes/api/user/totp/confirm/post.d.ts.map +1 -1
- package/dist/routes/index.d.ts +303 -16
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.d.ts.map +1 -1
- package/dist/routes/oauth/.well-known/openid-configuration/get.js +1 -0
- package/dist/routes/oauth/.well-known/openid-configuration/get.js.map +1 -1
- package/dist/routes/oauth/authorize/get.d.ts +2 -0
- package/dist/routes/oauth/authorize/get.d.ts.map +1 -1
- package/dist/routes/oauth/authorize/get.js +12 -1
- package/dist/routes/oauth/authorize/get.js.map +1 -1
- package/dist/routes/oauth/client-auth.js +1 -1
- package/dist/routes/oauth/client-auth.js.map +1 -1
- package/dist/routes/oauth/cors.d.ts.map +1 -1
- package/dist/routes/oauth/cors.js +8 -3
- package/dist/routes/oauth/cors.js.map +1 -1
- package/dist/routes/oauth/device/get-post.d.ts +2 -1
- package/dist/routes/oauth/device/get-post.d.ts.map +1 -1
- package/dist/routes/oauth/device/get-post.js +15 -9
- package/dist/routes/oauth/device/get-post.js.map +1 -1
- package/dist/routes/oauth/device-authorization/post.d.ts.map +1 -1
- package/dist/routes/oauth/device-authorization/post.js +2 -0
- package/dist/routes/oauth/device-authorization/post.js.map +1 -1
- package/dist/routes/oauth/end-session/get.d.ts.map +1 -1
- package/dist/routes/oauth/end-session/get.js +17 -8
- package/dist/routes/oauth/end-session/get.js.map +1 -1
- package/dist/routes/oauth/index.d.ts +5 -2
- package/dist/routes/oauth/index.d.ts.map +1 -1
- package/dist/routes/oauth/revoke/post.d.ts.map +1 -1
- package/dist/routes/oauth/revoke/post.js +2 -0
- package/dist/routes/oauth/revoke/post.js.map +1 -1
- package/dist/routes/oauth/token/post.d.ts +1 -1
- package/dist/routes/oauth/token/post.d.ts.map +1 -1
- package/dist/routes/oauth/token/post.js +10 -6
- package/dist/routes/oauth/token/post.js.map +1 -1
- package/dist/routes/oauth/userinfo/get.d.ts.map +1 -1
- package/dist/routes/oauth/userinfo/get.js +12 -6
- package/dist/routes/oauth/userinfo/get.js.map +1 -1
- package/dist/schemas/error.d.ts +56 -6
- package/dist/schemas/error.d.ts.map +1 -1
- package/dist/schemas/error.js +4 -2
- package/dist/schemas/error.js.map +1 -1
- package/dist/schemas/field.d.ts +1 -4
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +3 -1
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/response.d.ts +96 -0
- package/dist/schemas/response.d.ts.map +1 -1
- package/dist/schemas/response.js +29 -0
- package/dist/schemas/response.js.map +1 -1
- package/dist/services/account-selection.service.d.ts +39 -0
- package/dist/services/account-selection.service.d.ts.map +1 -0
- package/dist/services/account-selection.service.js +77 -0
- package/dist/services/account-selection.service.js.map +1 -0
- package/dist/services/container.d.ts +22 -0
- package/dist/services/container.d.ts.map +1 -1
- package/dist/services/jwt.service.js +3 -3
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/oauth-authorize.service.d.ts +24 -1
- package/dist/services/oauth-authorize.service.d.ts.map +1 -1
- package/dist/services/oauth-authorize.service.js +232 -8
- package/dist/services/oauth-authorize.service.js.map +1 -1
- package/dist/services/oauth-token.service.d.ts +2 -3
- package/dist/services/oauth-token.service.d.ts.map +1 -1
- package/dist/services/oauth-token.service.js +18 -10
- package/dist/services/oauth-token.service.js.map +1 -1
- package/dist/services/user.service.d.ts +28 -1
- package/dist/services/user.service.d.ts.map +1 -1
- package/dist/services/user.service.js +104 -0
- package/dist/services/user.service.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/2fa-BoyBKrjD.js +2 -0
- package/public/assets/2fa-BoyBKrjD.js.map +1 -0
- package/public/assets/2fa-DfWvDjDW.js +2 -0
- package/public/assets/2fa-DfWvDjDW.js.map +1 -0
- package/public/assets/2fa-IkQlgUP0.js +2 -0
- package/public/assets/2fa-IkQlgUP0.js.map +1 -0
- package/public/assets/2fa-SSKfXB7c.js +2 -0
- package/public/assets/2fa-SSKfXB7c.js.map +1 -0
- package/public/assets/CheckCircle.es-MnJIACCe.js +2 -0
- package/public/assets/CheckCircle.es-MnJIACCe.js.map +1 -0
- package/public/assets/EnvelopeSimple.es-BZ7u3LYh.js +2 -0
- package/public/assets/EnvelopeSimple.es-BZ7u3LYh.js.map +1 -0
- package/public/assets/Fingerprint.es-CW755VWD.js +2 -0
- package/public/assets/Fingerprint.es-CW755VWD.js.map +1 -0
- package/public/assets/IconBase.es-d5KP98Ac.js +2 -0
- package/public/assets/IconBase.es-d5KP98Ac.js.map +1 -0
- package/public/assets/Key.es-l5aSxw0I.js +2 -0
- package/public/assets/Key.es-l5aSxw0I.js.map +1 -0
- package/public/assets/Link.es-B-IJS4Q5.js +2 -0
- package/public/assets/Link.es-B-IJS4Q5.js.map +1 -0
- package/public/assets/Lock.es-Cb_uwQly.js +2 -0
- package/public/assets/Lock.es-Cb_uwQly.js.map +1 -0
- package/public/assets/ShieldCheck.es-CscPsYbC.js +2 -0
- package/public/assets/ShieldCheck.es-CscPsYbC.js.map +1 -0
- package/public/assets/Trash.es-BepW9BwV.js +2 -0
- package/public/assets/Trash.es-BepW9BwV.js.map +1 -0
- package/public/assets/Warning.es-BPpZIJYZ.js +2 -0
- package/public/assets/Warning.es-BPpZIJYZ.js.map +1 -0
- package/public/assets/X.es-IwdB4hWT.js +2 -0
- package/public/assets/X.es-IwdB4hWT.js.map +1 -0
- package/public/assets/admin-D2CMlWzS.js +2 -0
- package/public/assets/admin-D2CMlWzS.js.map +1 -0
- package/public/assets/admin-users-CTAQJl7w.js +2 -0
- package/public/assets/admin-users-CTAQJl7w.js.map +1 -0
- package/public/assets/alert-CSXqgDVi.js +2 -0
- package/public/assets/alert-CSXqgDVi.js.map +1 -0
- package/public/assets/consent-C5Qo0iLd.js +2 -0
- package/public/assets/consent-C5Qo0iLd.js.map +1 -0
- package/public/assets/consent-DwuWkp63.js +2 -0
- package/public/assets/consent-DwuWkp63.js.map +1 -0
- package/public/assets/email-CIttZRBe.js +2 -0
- package/public/assets/email-CIttZRBe.js.map +1 -0
- package/public/assets/email-SSKfXB7c.js +2 -0
- package/public/assets/email-SSKfXB7c.js.map +1 -0
- package/public/assets/error-D60wkdWN.js +2 -0
- package/public/assets/error-D60wkdWN.js.map +1 -0
- package/public/assets/footer-link-Ib1Hd-fr.js +2 -0
- package/public/assets/footer-link-Ib1Hd-fr.js.map +1 -0
- package/public/assets/forgot-SSKfXB7c.js +2 -0
- package/public/assets/forgot-SSKfXB7c.js.map +1 -0
- package/public/assets/forgot-x-UDyHXT.js +2 -0
- package/public/assets/forgot-x-UDyHXT.js.map +1 -0
- package/public/assets/icon-input-8iU7PNzd.js +2 -0
- package/public/assets/icon-input-8iU7PNzd.js.map +1 -0
- package/public/assets/index-CsT6OVnP.js +11 -0
- package/public/assets/index-CsT6OVnP.js.map +1 -0
- package/public/assets/index-D6-1JDnX.css +2 -0
- package/public/assets/login-DhbnCudI.js +2 -0
- package/public/assets/login-DhbnCudI.js.map +1 -0
- package/public/assets/login-SSKfXB7c.js +2 -0
- package/public/assets/login-SSKfXB7c.js.map +1 -0
- package/public/assets/modal-BjnpKlXn.js +2 -0
- package/public/assets/modal-BjnpKlXn.js.map +1 -0
- package/public/assets/mutationOptions-Dfvzj6n2.js +2 -0
- package/public/assets/mutationOptions-Dfvzj6n2.js.map +1 -0
- package/public/assets/page-header-BYMFSGfT.js +2 -0
- package/public/assets/page-header-BYMFSGfT.js.map +1 -0
- package/public/assets/page-layout-C475gs09.js +2 -0
- package/public/assets/page-layout-C475gs09.js.map +1 -0
- package/public/assets/passkey-BdISbWr7.js +2 -0
- package/public/assets/passkey-BdISbWr7.js.map +1 -0
- package/public/assets/passkey-Bv7zPLAZ.js +2 -0
- package/public/assets/passkey-Bv7zPLAZ.js.map +1 -0
- package/public/assets/passkey-e6uvApHa.js +2 -0
- package/public/assets/passkey-e6uvApHa.js.map +1 -0
- package/public/assets/password-CkeV4qxb.js +2 -0
- package/public/assets/password-CkeV4qxb.js.map +1 -0
- package/public/assets/password-SSKfXB7c.js +2 -0
- package/public/assets/password-SSKfXB7c.js.map +1 -0
- package/public/assets/password-reset-XZJTgJi3.js +2 -0
- package/public/assets/password-reset-XZJTgJi3.js.map +1 -0
- package/public/assets/pin-input-BM1UizHr.js +2 -0
- package/public/assets/pin-input-BM1UizHr.js.map +1 -0
- package/public/assets/profile-D2cuVYgE.js +2 -0
- package/public/assets/profile-D2cuVYgE.js.map +1 -0
- package/public/assets/profile-TKdT20x5.js +2 -0
- package/public/assets/profile-TKdT20x5.js.map +1 -0
- package/public/assets/promise-OpBtq8tG.js +2 -0
- package/public/assets/promise-OpBtq8tG.js.map +1 -0
- package/public/assets/recovery-DM8h2gbb.js +2 -0
- package/public/assets/recovery-DM8h2gbb.js.map +1 -0
- package/public/assets/register-SSKfXB7c.js +2 -0
- package/public/assets/register-SSKfXB7c.js.map +1 -0
- package/public/assets/register-vWW_43cD.js +2 -0
- package/public/assets/register-vWW_43cD.js.map +1 -0
- package/public/assets/reset-CgACYrdp.js +2 -0
- package/public/assets/reset-CgACYrdp.js.map +1 -0
- package/public/assets/reset-SSKfXB7c.js +2 -0
- package/public/assets/reset-SSKfXB7c.js.map +1 -0
- package/public/assets/routes-CAIeH5mq.js +2 -0
- package/public/assets/routes-CAIeH5mq.js.map +1 -0
- package/public/assets/select-BCP5fwfB.js +2 -0
- package/public/assets/select-BCP5fwfB.js.map +1 -0
- package/public/assets/select-SSKfXB7c.js +2 -0
- package/public/assets/select-SSKfXB7c.js.map +1 -0
- package/public/assets/standard-schema-o4V-s4uY.js +2 -0
- package/public/assets/standard-schema-o4V-s4uY.js.map +1 -0
- package/public/assets/submit-button-Xx6DwLyh.js +2 -0
- package/public/assets/submit-button-Xx6DwLyh.js.map +1 -0
- package/public/assets/terms-DPWrbYY2.js +2 -0
- package/public/assets/terms-DPWrbYY2.js.map +1 -0
- package/public/assets/terms-TKdT20x5.js +2 -0
- package/public/assets/terms-TKdT20x5.js.map +1 -0
- package/public/assets/terms-checkbox-list-CdrbHxiF.js +2 -0
- package/public/assets/terms-checkbox-list-CdrbHxiF.js.map +1 -0
- package/public/assets/totp-CKZ6N1NS.js +2 -0
- package/public/assets/totp-CKZ6N1NS.js.map +1 -0
- package/public/assets/totp-D-PVOsGQ.js +2 -0
- package/public/assets/totp-D-PVOsGQ.js.map +1 -0
- package/public/assets/totp-NlqqRp4a.js +2 -0
- package/public/assets/totp-NlqqRp4a.js.map +1 -0
- package/public/assets/use-theme-cVUDAjtt.js +2 -0
- package/public/assets/use-theme-cVUDAjtt.js.map +1 -0
- package/public/assets/use-totp-setup-BH75uEbE.js +3 -0
- package/public/assets/use-totp-setup-BH75uEbE.js.map +1 -0
- package/public/assets/useMutation-DVMopbtG.js +2 -0
- package/public/assets/useMutation-DVMopbtG.js.map +1 -0
- package/public/assets/users-B7ofdp72.js +2 -0
- package/public/assets/users-B7ofdp72.js.map +1 -0
- package/public/assets/zod-BItJDQBQ.js +66 -0
- package/public/assets/zod-BItJDQBQ.js.map +1 -0
- package/public/index.html +6 -2
- package/public/assets/index-5_9rzim1.css +0 -2
- package/public/assets/index-BTGeW26-.js +0 -75
- package/public/assets/index-BTGeW26-.js.map +0 -1
|
@@ -6,7 +6,269 @@ import { type InitializeServicesOptions } from '../services/container.ts';
|
|
|
6
6
|
export type CreateAppOptions = TinyAuthRuntimeConfigInput;
|
|
7
7
|
export type CreateAppRuntimeOptions = InitializeServicesOptions;
|
|
8
8
|
export declare function createApp(options: CreateAppOptions, runtimeOptions?: CreateAppRuntimeOptions): Promise<{
|
|
9
|
-
app: import("hono/hono-base").HonoBase<import("../middleware/logger.ts").LoggerEnv & import("../middleware/session.ts").SessionEnv & import("../middleware/services.ts").ServicesEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
9
|
+
app: import("hono/hono-base").HonoBase<import("../middleware/logger.ts").LoggerEnv & import("../middleware/session.ts").SessionEnv & import("../middleware/services.ts").ServicesEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
10
|
+
"/admin/me": {
|
|
11
|
+
$get: {
|
|
12
|
+
input: {};
|
|
13
|
+
output: {
|
|
14
|
+
user: {
|
|
15
|
+
managed_by: "database" | "config";
|
|
16
|
+
sub: string;
|
|
17
|
+
email: string;
|
|
18
|
+
role: "user" | "admin";
|
|
19
|
+
email_verified: boolean;
|
|
20
|
+
email_verification_required: boolean;
|
|
21
|
+
has_password: boolean;
|
|
22
|
+
totp_registered: boolean;
|
|
23
|
+
totp_recovery_codes_missing: boolean;
|
|
24
|
+
second_factor_required: boolean;
|
|
25
|
+
passkey_count: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
outputFormat: "json";
|
|
29
|
+
status: 200;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
33
|
+
"/admin/users": {
|
|
34
|
+
$get: {
|
|
35
|
+
input: {
|
|
36
|
+
query: {
|
|
37
|
+
query?: string | string[];
|
|
38
|
+
page?: string | string[];
|
|
39
|
+
page_size?: string | string[];
|
|
40
|
+
include_deleted?: string | string[];
|
|
41
|
+
managed_by?: string | string[];
|
|
42
|
+
role?: string | string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
output: {
|
|
46
|
+
users: {
|
|
47
|
+
managed_by: "database" | "config";
|
|
48
|
+
sub: string;
|
|
49
|
+
email: string;
|
|
50
|
+
role: "user" | "admin";
|
|
51
|
+
email_verified: boolean;
|
|
52
|
+
email_verification_required: boolean;
|
|
53
|
+
has_password: boolean;
|
|
54
|
+
totp_registered: boolean;
|
|
55
|
+
totp_recovery_codes_missing: boolean;
|
|
56
|
+
second_factor_required: boolean;
|
|
57
|
+
passkey_count: number;
|
|
58
|
+
deleted_at: string | null;
|
|
59
|
+
}[];
|
|
60
|
+
pagination: {
|
|
61
|
+
page: number;
|
|
62
|
+
page_size: number;
|
|
63
|
+
total: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: 200;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
} & {
|
|
71
|
+
"/admin/users": {
|
|
72
|
+
$post: {
|
|
73
|
+
input: {
|
|
74
|
+
json: {
|
|
75
|
+
email: string;
|
|
76
|
+
password: string;
|
|
77
|
+
role?: "user" | "admin" | undefined;
|
|
78
|
+
email_verified?: boolean | undefined;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
output: {
|
|
82
|
+
user: {
|
|
83
|
+
managed_by: "database" | "config";
|
|
84
|
+
sub: string;
|
|
85
|
+
email: string;
|
|
86
|
+
role: "user" | "admin";
|
|
87
|
+
email_verified: boolean;
|
|
88
|
+
email_verification_required: boolean;
|
|
89
|
+
has_password: boolean;
|
|
90
|
+
totp_registered: boolean;
|
|
91
|
+
totp_recovery_codes_missing: boolean;
|
|
92
|
+
second_factor_required: boolean;
|
|
93
|
+
passkey_count: number;
|
|
94
|
+
deleted_at: string | null;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
outputFormat: "json";
|
|
98
|
+
status: 201;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
} & {
|
|
102
|
+
"/admin/users/:sub": {
|
|
103
|
+
$get: {
|
|
104
|
+
input: {
|
|
105
|
+
param: {
|
|
106
|
+
sub: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
output: {
|
|
110
|
+
user: {
|
|
111
|
+
managed_by: "database" | "config";
|
|
112
|
+
sub: string;
|
|
113
|
+
email: string;
|
|
114
|
+
role: "user" | "admin";
|
|
115
|
+
email_verified: boolean;
|
|
116
|
+
email_verification_required: boolean;
|
|
117
|
+
has_password: boolean;
|
|
118
|
+
totp_registered: boolean;
|
|
119
|
+
totp_recovery_codes_missing: boolean;
|
|
120
|
+
second_factor_required: boolean;
|
|
121
|
+
passkey_count: number;
|
|
122
|
+
deleted_at: string | null;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
outputFormat: "json";
|
|
126
|
+
status: 200;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
} & {
|
|
130
|
+
"/admin/users/:sub": {
|
|
131
|
+
$patch: {
|
|
132
|
+
input: {
|
|
133
|
+
json: {
|
|
134
|
+
email?: string | undefined;
|
|
135
|
+
role?: "user" | "admin" | undefined;
|
|
136
|
+
email_verified?: boolean | undefined;
|
|
137
|
+
};
|
|
138
|
+
} & {
|
|
139
|
+
param: {
|
|
140
|
+
sub: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
output: {
|
|
144
|
+
user: {
|
|
145
|
+
managed_by: "database" | "config";
|
|
146
|
+
sub: string;
|
|
147
|
+
email: string;
|
|
148
|
+
role: "user" | "admin";
|
|
149
|
+
email_verified: boolean;
|
|
150
|
+
email_verification_required: boolean;
|
|
151
|
+
has_password: boolean;
|
|
152
|
+
totp_registered: boolean;
|
|
153
|
+
totp_recovery_codes_missing: boolean;
|
|
154
|
+
second_factor_required: boolean;
|
|
155
|
+
passkey_count: number;
|
|
156
|
+
deleted_at: string | null;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
outputFormat: "json";
|
|
160
|
+
status: 200;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
} & {
|
|
164
|
+
"/admin/users/:sub": {
|
|
165
|
+
$delete: {
|
|
166
|
+
input: {
|
|
167
|
+
param: {
|
|
168
|
+
sub: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
output: {
|
|
172
|
+
user: {
|
|
173
|
+
managed_by: "database" | "config";
|
|
174
|
+
sub: string;
|
|
175
|
+
email: string;
|
|
176
|
+
role: "user" | "admin";
|
|
177
|
+
email_verified: boolean;
|
|
178
|
+
email_verification_required: boolean;
|
|
179
|
+
has_password: boolean;
|
|
180
|
+
totp_registered: boolean;
|
|
181
|
+
totp_recovery_codes_missing: boolean;
|
|
182
|
+
second_factor_required: boolean;
|
|
183
|
+
passkey_count: number;
|
|
184
|
+
deleted_at: string | null;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
outputFormat: "json";
|
|
188
|
+
status: 200;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
192
|
+
"/auth/accounts": {
|
|
193
|
+
$get: {
|
|
194
|
+
input: {
|
|
195
|
+
query: {
|
|
196
|
+
client_id?: string | string[];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
output: {
|
|
200
|
+
active_sub: string | null;
|
|
201
|
+
accounts: {
|
|
202
|
+
sub: import("@mikro-orm/core").Opt<string>;
|
|
203
|
+
email: string;
|
|
204
|
+
role: import("@mikro-orm/core").Opt<NonNullable<"user" | "admin">>;
|
|
205
|
+
current: boolean;
|
|
206
|
+
authenticated_at: number;
|
|
207
|
+
last_used_at: number;
|
|
208
|
+
}[];
|
|
209
|
+
allow_add_account: boolean;
|
|
210
|
+
allow_remove_account: boolean;
|
|
211
|
+
};
|
|
212
|
+
outputFormat: "json";
|
|
213
|
+
status: 200;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
217
|
+
"/auth/accounts/select": {
|
|
218
|
+
$post: {
|
|
219
|
+
input: {
|
|
220
|
+
json: {
|
|
221
|
+
sub: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
output: {
|
|
225
|
+
code: string;
|
|
226
|
+
message: string;
|
|
227
|
+
};
|
|
228
|
+
outputFormat: "json";
|
|
229
|
+
status: 400;
|
|
230
|
+
} | {
|
|
231
|
+
input: {
|
|
232
|
+
json: {
|
|
233
|
+
sub: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
output: {
|
|
237
|
+
ok: true;
|
|
238
|
+
active_sub: string;
|
|
239
|
+
};
|
|
240
|
+
outputFormat: "json";
|
|
241
|
+
status: 200;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
245
|
+
"/auth/accounts/remove": {
|
|
246
|
+
$post: {
|
|
247
|
+
input: {
|
|
248
|
+
json: {
|
|
249
|
+
sub: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
output: {
|
|
253
|
+
code: string;
|
|
254
|
+
message: string;
|
|
255
|
+
};
|
|
256
|
+
outputFormat: "json";
|
|
257
|
+
status: 400;
|
|
258
|
+
} | {
|
|
259
|
+
input: {
|
|
260
|
+
json: {
|
|
261
|
+
sub: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
output: {
|
|
265
|
+
ok: true;
|
|
266
|
+
};
|
|
267
|
+
outputFormat: "json";
|
|
268
|
+
status: 200;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
10
272
|
"/auth/login": {
|
|
11
273
|
$post: {
|
|
12
274
|
input: {
|
|
@@ -20,6 +282,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
20
282
|
managed_by: "database" | "config";
|
|
21
283
|
sub: string;
|
|
22
284
|
email: string;
|
|
285
|
+
role: "user" | "admin";
|
|
23
286
|
email_verified: boolean;
|
|
24
287
|
email_verification_required: boolean;
|
|
25
288
|
has_password: boolean;
|
|
@@ -67,6 +330,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
67
330
|
managed_by: "database" | "config";
|
|
68
331
|
sub: string;
|
|
69
332
|
email: string;
|
|
333
|
+
role: "user" | "admin";
|
|
70
334
|
email_verified: boolean;
|
|
71
335
|
email_verification_required: boolean;
|
|
72
336
|
has_password: boolean;
|
|
@@ -128,6 +392,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
128
392
|
managed_by: "database" | "config";
|
|
129
393
|
sub: string;
|
|
130
394
|
email: string;
|
|
395
|
+
role: "user" | "admin";
|
|
131
396
|
email_verified: boolean;
|
|
132
397
|
email_verification_required: boolean;
|
|
133
398
|
has_password: boolean;
|
|
@@ -173,6 +438,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
173
438
|
managed_by: "database" | "config";
|
|
174
439
|
sub: string;
|
|
175
440
|
email: string;
|
|
441
|
+
role: "user" | "admin";
|
|
176
442
|
email_verified: boolean;
|
|
177
443
|
email_verification_required: boolean;
|
|
178
444
|
has_password: boolean;
|
|
@@ -199,6 +465,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
199
465
|
managed_by: "database" | "config";
|
|
200
466
|
sub: string;
|
|
201
467
|
email: string;
|
|
468
|
+
role: "user" | "admin";
|
|
202
469
|
email_verified: boolean;
|
|
203
470
|
email_verification_required: boolean;
|
|
204
471
|
has_password: boolean;
|
|
@@ -265,6 +532,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
265
532
|
managed_by: "database" | "config";
|
|
266
533
|
sub: string;
|
|
267
534
|
email: string;
|
|
535
|
+
role: "user" | "admin";
|
|
268
536
|
email_verified: boolean;
|
|
269
537
|
email_verification_required: boolean;
|
|
270
538
|
has_password: boolean;
|
|
@@ -315,6 +583,9 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
315
583
|
email: {
|
|
316
584
|
enabled: boolean;
|
|
317
585
|
};
|
|
586
|
+
admin: {
|
|
587
|
+
enabled: boolean;
|
|
588
|
+
};
|
|
318
589
|
auth: {
|
|
319
590
|
password: {
|
|
320
591
|
enabled: boolean;
|
|
@@ -393,6 +664,16 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
393
664
|
nonce?: string | undefined;
|
|
394
665
|
code_challenge?: string | undefined;
|
|
395
666
|
code_challenge_method?: "S256" | "plain" | undefined;
|
|
667
|
+
prompt?: string | undefined;
|
|
668
|
+
max_age?: unknown;
|
|
669
|
+
display?: "page" | "popup" | "touch" | "wap" | undefined;
|
|
670
|
+
response_mode?: "query" | "fragment" | "form_post" | undefined;
|
|
671
|
+
login_hint?: string | undefined;
|
|
672
|
+
ui_locales?: string | undefined;
|
|
673
|
+
id_token_hint?: string | undefined;
|
|
674
|
+
acr_values?: string | undefined;
|
|
675
|
+
account_selected?: "1" | undefined;
|
|
676
|
+
account_selection_state?: string | undefined;
|
|
396
677
|
};
|
|
397
678
|
};
|
|
398
679
|
output: {
|
|
@@ -465,6 +746,15 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
465
746
|
status: 200;
|
|
466
747
|
};
|
|
467
748
|
};
|
|
749
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
750
|
+
"/docs": {
|
|
751
|
+
$get: {
|
|
752
|
+
input: {};
|
|
753
|
+
output: {};
|
|
754
|
+
outputFormat: string;
|
|
755
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
756
|
+
};
|
|
757
|
+
};
|
|
468
758
|
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
469
759
|
"/terms": {
|
|
470
760
|
$get: {
|
|
@@ -517,15 +807,6 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
517
807
|
status: 200;
|
|
518
808
|
};
|
|
519
809
|
};
|
|
520
|
-
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
521
|
-
"/docs": {
|
|
522
|
-
$get: {
|
|
523
|
-
input: {};
|
|
524
|
-
output: {};
|
|
525
|
-
outputFormat: string;
|
|
526
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
527
|
-
};
|
|
528
|
-
};
|
|
529
810
|
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
530
811
|
"/user": {
|
|
531
812
|
$delete: {
|
|
@@ -555,6 +836,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
555
836
|
managed_by: "database" | "config";
|
|
556
837
|
sub: string;
|
|
557
838
|
email: string;
|
|
839
|
+
role: "user" | "admin";
|
|
558
840
|
email_verified: boolean;
|
|
559
841
|
email_verification_required: boolean;
|
|
560
842
|
has_password: boolean;
|
|
@@ -673,6 +955,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
673
955
|
managed_by: "database" | "config";
|
|
674
956
|
sub: string;
|
|
675
957
|
email: string;
|
|
958
|
+
role: "user" | "admin";
|
|
676
959
|
email_verified: boolean;
|
|
677
960
|
email_verification_required: boolean;
|
|
678
961
|
has_password: boolean;
|
|
@@ -830,6 +1113,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
830
1113
|
managed_by: "database" | "config";
|
|
831
1114
|
sub: string;
|
|
832
1115
|
email: string;
|
|
1116
|
+
role: "user" | "admin";
|
|
833
1117
|
email_verified: boolean;
|
|
834
1118
|
email_verification_required: boolean;
|
|
835
1119
|
has_password: boolean;
|
|
@@ -857,7 +1141,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
857
1141
|
status: 200;
|
|
858
1142
|
};
|
|
859
1143
|
};
|
|
860
|
-
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").
|
|
1144
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
861
1145
|
"/oauth/:provider/authorize": {
|
|
862
1146
|
$get: {
|
|
863
1147
|
input: {
|
|
@@ -875,7 +1159,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
875
1159
|
status: 302;
|
|
876
1160
|
};
|
|
877
1161
|
};
|
|
878
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1162
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
879
1163
|
"/oauth/:provider/callback": {
|
|
880
1164
|
$get: {
|
|
881
1165
|
input: {
|
|
@@ -914,7 +1198,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
914
1198
|
status: any;
|
|
915
1199
|
};
|
|
916
1200
|
};
|
|
917
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1201
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
918
1202
|
"/oauth/:provider/callback": {
|
|
919
1203
|
$post: {
|
|
920
1204
|
input: {
|
|
@@ -953,7 +1237,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
953
1237
|
status: any;
|
|
954
1238
|
};
|
|
955
1239
|
};
|
|
956
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1240
|
+
}, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
957
1241
|
"/oauth/:provider": {
|
|
958
1242
|
$delete: {
|
|
959
1243
|
input: {
|
|
@@ -984,6 +1268,8 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
984
1268
|
prompt?: string | string[];
|
|
985
1269
|
max_age?: string | string[];
|
|
986
1270
|
reauthenticated?: string | string[];
|
|
1271
|
+
account_selected?: string | string[];
|
|
1272
|
+
account_selection_state?: string | string[];
|
|
987
1273
|
display?: string | string[];
|
|
988
1274
|
response_mode?: string | string[];
|
|
989
1275
|
login_hint?: string | string[];
|
|
@@ -1033,7 +1319,8 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
1033
1319
|
$post: {
|
|
1034
1320
|
input: {
|
|
1035
1321
|
form: {
|
|
1036
|
-
user_code:
|
|
1322
|
+
user_code: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
1323
|
+
decision?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
1037
1324
|
};
|
|
1038
1325
|
};
|
|
1039
1326
|
output: {
|
|
@@ -1080,7 +1367,7 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
1080
1367
|
$post: {
|
|
1081
1368
|
input: {
|
|
1082
1369
|
form: {
|
|
1083
|
-
grant_type
|
|
1370
|
+
grant_type?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
1084
1371
|
code?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
1085
1372
|
redirect_uri?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
1086
1373
|
client_id?: import("hono/types").ParsedFormValue | import("hono/types").ParsedFormValue[];
|
|
@@ -1309,6 +1596,9 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
1309
1596
|
enabled: boolean;
|
|
1310
1597
|
retention: string;
|
|
1311
1598
|
};
|
|
1599
|
+
admin: {
|
|
1600
|
+
enabled: boolean;
|
|
1601
|
+
};
|
|
1312
1602
|
logging: {
|
|
1313
1603
|
level: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "silent";
|
|
1314
1604
|
format: "json" | "pretty";
|
|
@@ -1339,6 +1629,21 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
1339
1629
|
rp_id?: string | undefined;
|
|
1340
1630
|
origins?: string[] | undefined;
|
|
1341
1631
|
};
|
|
1632
|
+
account_selection: {
|
|
1633
|
+
enabled: boolean;
|
|
1634
|
+
mode: "always" | "oidc_prompt" | "disabled" | "smart";
|
|
1635
|
+
remember_accounts: {
|
|
1636
|
+
enabled: boolean;
|
|
1637
|
+
max_accounts: number;
|
|
1638
|
+
ttl: string;
|
|
1639
|
+
};
|
|
1640
|
+
allow_add_account: boolean;
|
|
1641
|
+
allow_remove_account: boolean;
|
|
1642
|
+
login_hint: {
|
|
1643
|
+
behavior: "prefer" | "ignore" | "require_match";
|
|
1644
|
+
};
|
|
1645
|
+
prompt_none_error: "login_required" | "account_selection_required";
|
|
1646
|
+
};
|
|
1342
1647
|
};
|
|
1343
1648
|
security: {
|
|
1344
1649
|
session_secret: string;
|
|
@@ -1395,6 +1700,10 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
|
|
|
1395
1700
|
skip_consent: boolean;
|
|
1396
1701
|
logo_uri?: string | undefined;
|
|
1397
1702
|
client_secret?: string | undefined;
|
|
1703
|
+
account_selection?: {
|
|
1704
|
+
mode: "inherit" | "never" | "always" | "oidc_prompt" | "smart";
|
|
1705
|
+
allow_add_account?: boolean | undefined;
|
|
1706
|
+
} | undefined;
|
|
1398
1707
|
}[];
|
|
1399
1708
|
users: {
|
|
1400
1709
|
sub: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAYhC,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC1D,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAEhE,wBAAsB,SAAS,CAC7B,OAAO,EAAE,gBAAgB,EACzB,cAAc,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyF7C;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
|
package/dist/entrypoints/app.js
CHANGED
|
@@ -2,6 +2,7 @@ import { RequestContext } from '@mikro-orm/core';
|
|
|
2
2
|
import { Hono } from 'hono';
|
|
3
3
|
import { generateSpecs } from 'hono-openapi';
|
|
4
4
|
import { TinyAuthRuntimeConfigSchema, } from "../lib/config/index.js";
|
|
5
|
+
import { parseDurationToMs } from "../lib/duration.js";
|
|
5
6
|
import { createLogger } from "../lib/logger.js";
|
|
6
7
|
import { createOpenApiDocumentation } from "../lib/openapi.js";
|
|
7
8
|
import { csrfProtection } from "../middleware/csrf.js";
|
|
@@ -25,12 +26,9 @@ export async function createApp(options, runtimeOptions = {}) {
|
|
|
25
26
|
branding: config.branding,
|
|
26
27
|
server: config.server,
|
|
27
28
|
});
|
|
28
|
-
const
|
|
29
|
-
.onError((err, c) => {
|
|
29
|
+
const handleError = (err, c) => {
|
|
30
30
|
if (err instanceof TinyAuthError) {
|
|
31
|
-
|
|
32
|
-
c.header('WWW-Authenticate', 'Bearer error="insufficient_scope", scope="openid"');
|
|
33
|
-
}
|
|
31
|
+
setBearerAuthChallenge(c, err);
|
|
34
32
|
if (c.req.path.startsWith('/oauth/')) {
|
|
35
33
|
return c.json(toOAuthErrorJson(err), err.status);
|
|
36
34
|
}
|
|
@@ -39,10 +37,17 @@ export async function createApp(options, runtimeOptions = {}) {
|
|
|
39
37
|
logger.error({ err }, 'Unhandled error');
|
|
40
38
|
const internalErr = new e.InternalServerError.Error();
|
|
41
39
|
return c.json(internalErr.toJson(), internalErr.status);
|
|
42
|
-
}
|
|
40
|
+
};
|
|
41
|
+
const app = new Hono()
|
|
42
|
+
.onError(handleError)
|
|
43
43
|
.use('*', loggerMiddleware(logger))
|
|
44
44
|
.use('*', firstPartyCors(config.server.public_origin))
|
|
45
|
-
.use('*', sessionMiddleware(config.security.session_secret, config.server.public_origin.startsWith('https')
|
|
45
|
+
.use('*', sessionMiddleware(config.security.session_secret, config.server.public_origin.startsWith('https'), {
|
|
46
|
+
enabled: config.auth.account_selection.enabled &&
|
|
47
|
+
config.auth.account_selection.remember_accounts.enabled,
|
|
48
|
+
maxAccounts: config.auth.account_selection.remember_accounts.max_accounts,
|
|
49
|
+
ttlMs: parseDurationToMs(config.auth.account_selection.remember_accounts.ttl),
|
|
50
|
+
}))
|
|
46
51
|
.use('*', trustedProxyGuard(config.server.trust_proxy))
|
|
47
52
|
.use('/api/*', csrfProtection(config.server.public_origin))
|
|
48
53
|
.use('/oauth/device', csrfProtection(config.server.public_origin))
|
|
@@ -95,6 +100,23 @@ function firstPartyCors(publicOrigin) {
|
|
|
95
100
|
return undefined;
|
|
96
101
|
};
|
|
97
102
|
}
|
|
103
|
+
function setBearerAuthChallenge(c, err) {
|
|
104
|
+
switch (err.code) {
|
|
105
|
+
case 'MISSING_AUTHORIZATION_HEADER':
|
|
106
|
+
c.header('WWW-Authenticate', 'Bearer');
|
|
107
|
+
return;
|
|
108
|
+
case 'INVALID_AUTHORIZATION_HEADER_FORMAT':
|
|
109
|
+
case 'MISSING_BEARER_TOKEN':
|
|
110
|
+
case 'INVALID_ACCESS_TOKEN':
|
|
111
|
+
c.header('WWW-Authenticate', 'Bearer error="invalid_token"');
|
|
112
|
+
return;
|
|
113
|
+
case 'insufficient_scope':
|
|
114
|
+
c.header('WWW-Authenticate', 'Bearer error="insufficient_scope", scope="openid"');
|
|
115
|
+
return;
|
|
116
|
+
default:
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
98
120
|
function toOAuthErrorJson(err) {
|
|
99
121
|
return {
|
|
100
122
|
...err.toJson(),
|
|
@@ -129,6 +151,10 @@ function toOAuthErrorCode(err) {
|
|
|
129
151
|
return 'authorization_pending';
|
|
130
152
|
case 'slow_down':
|
|
131
153
|
return 'slow_down';
|
|
154
|
+
case 'expired_token':
|
|
155
|
+
return 'expired_token';
|
|
156
|
+
case 'access_denied':
|
|
157
|
+
return 'access_denied';
|
|
132
158
|
default:
|
|
133
159
|
return 'invalid_request';
|
|
134
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB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