auth

Main authentication module for my projects
git clone git://git.finwo.net/app/auth
Log | Files | Refs

ModeNameSize
-rw-r--r--.editorconfig13L
-rw-r--r--.github/FUNDING.yml3L
-rw-r--r--.gitignore5L
-rw-r--r--CODE_OF_CONDUCT.md6L
-rw-r--r--app/account/config.example.json3L
-rwxr-xr-xapp/account/esbuild.cjs110L
-rw-r--r--app/account/package-lock.json513L
-rw-r--r--app/account/package.json16L
-rw-r--r--app/account/src/assets/hex-grid-dark.svg339L
-rw-r--r--app/account/src/assets/hex-grid-light.svg339L
-rw-r--r--app/account/src/main.ts24L
-rw-r--r--app/account/src/screen/account.tsx381L
-rw-r--r--app/account/src/screen/apps.tsx22L
-rw-r--r--app/account/src/screen/overview.tsx253L
-rw-r--r--app/account/src/screen/security.tsx63L
-rw-r--r--app/account/src/style/account.css121L
-rw-r--r--app/account/src/util/api.ts114L
-rw-r--r--app/account/src/util/auth.ts24L
-rw-r--r--app/admin/config.example.json3L
-rwxr-xr-xapp/admin/esbuild.cjs110L
-rw-r--r--app/admin/package-lock.json513L
-rw-r--r--app/admin/package.json16L
-rw-r--r--app/admin/src/assets/hex-grid-dark.svg339L
-rw-r--r--app/admin/src/assets/hex-grid-light.svg339L
-rw-r--r--app/admin/src/component/breadcrumb.tsx41L
-rw-r--r--app/admin/src/component/client-form.tsx368L
-rw-r--r--app/admin/src/component/client-hosts.tsx401L
-rw-r--r--app/admin/src/component/realm-selector.tsx47L
-rw-r--r--app/admin/src/main.ts86L
-rw-r--r--app/admin/src/screen/admin.tsx744L
-rw-r--r--app/admin/src/screen/client-edit.tsx443L
-rw-r--r--app/admin/src/screen/clients.tsx444L
-rw-r--r--app/admin/src/screen/email-domains.tsx694L
-rw-r--r--app/admin/src/screen/global-user.tsx224L
-rw-r--r--app/admin/src/screen/hosts.tsx467L
-rw-r--r--app/admin/src/screen/overview.tsx74L
-rw-r--r--app/admin/src/screen/provider-edit.tsx794L
-rw-r--r--app/admin/src/screen/providers.tsx499L
-rw-r--r--app/admin/src/screen/realms.tsx636L
-rw-r--r--app/admin/src/screen/sessions.tsx354L
-rw-r--r--app/admin/src/screen/settings.tsx449L
-rw-r--r--app/admin/src/screen/system-settings.tsx241L
-rw-r--r--app/admin/src/screen/user.tsx827L
-rw-r--r--app/admin/src/screen/users.tsx491L
-rw-r--r--app/admin/src/style/admin.css117L
-rw-r--r--app/admin/src/util/api.ts529L
-rw-r--r--app/admin/src/util/auth.ts678L
-rw-r--r--app/admin/src/util/format.ts19L
-rw-r--r--app/admin/src/util/hosts.ts39L
-rw-r--r--app/admin/src/util/navigation.ts41L
-rwxr-xr-xapp/login/esbuild.cjs110L
-rw-r--r--app/login/package-lock.json513L
-rw-r--r--app/login/package.json17L
-rw-r--r--app/login/scripts/generate-hex-grid.js89L
-rw-r--r--app/login/src/main.ts23L
-rw-r--r--app/login/src/screen/login.tsx567L
-rw-r--r--app/login/src/style/login.css244L
-rw-r--r--app/login/src/util/api.ts184L
-rw-r--r--app/shared/api/config.ts38L
-rw-r--r--app/shared/api/http.ts52L
-rw-r--r--app/shared/api/oidc.ts316L
-rw-r--r--app/shared/component/app-shell.tsx43L
-rw-r--r--app/shared/component/icon.ts23L
-rw-r--r--app/shared/component/mobile-nav.tsx133L
-rw-r--r--app/shared/component/modal.tsx70L
-rw-r--r--app/shared/component/nav.tsx39L
-rw-r--r--app/shared/component/page-header.tsx22L
-rw-r--r--app/shared/component/select-menu.css152L
-rw-r--r--app/shared/component/select-menu.tsx384L
-rw-r--r--app/shared/component/status-page.tsx43L
-rw-r--r--app/shared/component/table-pager.tsx46L
-rw-r--r--app/shared/component/topbar.tsx33L
-rw-r--r--app/shared/component/user-menu.css28L
-rw-r--r--app/shared/component/user-menu.tsx87L
-rw-r--r--app/shared/component/user-sessions.tsx442L
-rw-r--r--app/shared/style/assets/hex-grid-dark.svg339L
-rw-r--r--app/shared/style/assets/hex-grid-light.svg339L
-rw-r--r--app/shared/style/global.css1192L
-rw-r--r--app/shared/util/branding.ts91L
-rw-r--r--app/shared/util/format.ts37L
-rw-r--r--app/shared/util/theme.ts39L
-rw-r--r--mockup/hex-grid-dark.svg339L
-rw-r--r--mockup/hex-grid-light.svg339L
-rw-r--r--mockup/plain/account.html559L
-rw-r--r--mockup/plain/admin-client-detail.html683L
-rw-r--r--mockup/plain/admin-clients.html550L
-rw-r--r--mockup/plain/admin-dashboard.html353L
-rw-r--r--mockup/plain/admin-realm-email-domains.html979L
-rw-r--r--mockup/plain/admin-realm-hosts.html836L
-rw-r--r--mockup/plain/admin-realm-provider-edit.html879L
-rw-r--r--mockup/plain/admin-realm-providers.html827L
-rw-r--r--mockup/plain/admin-realms.html1060L
-rw-r--r--mockup/plain/admin-settings.html626L
-rw-r--r--mockup/plain/admin-system-settings.html375L
-rw-r--r--mockup/plain/admin-user-detail.html918L
-rw-r--r--mockup/plain/admin-user-global-detail.html609L
-rw-r--r--mockup/plain/admin-users.html487L
-rw-r--r--mockup/plain/consent.html99L
-rw-r--r--mockup/plain/dropdown-menu.html380L
-rw-r--r--mockup/plain/error-pages.html158L
-rw-r--r--mockup/plain/hex-grid-dark.svg339L
-rw-r--r--mockup/plain/hex-grid-light.svg339L
-rw-r--r--mockup/plain/login.html329L
-rw-r--r--mockup/plain/mockups.css471L
-rw-r--r--mockup/plain/shell.js423L
-rw-r--r--mockup/template-poc/README.md54L
-rw-r--r--mockup/template-poc/esbuild.cjs28L
-rw-r--r--mockup/template-poc/index.html75L
-rw-r--r--mockup/template-poc/package-lock.json1644L
-rw-r--r--mockup/template-poc/package.json21L
-rw-r--r--mockup/template-poc/scripts/build-templates.mjs104L
-rw-r--r--mockup/template-poc/src/debug.css195L
-rw-r--r--mockup/template-poc/src/main.ts406L
-rw-r--r--mockup/template-poc/src/runtime/actions.ts37L
-rw-r--r--mockup/template-poc/src/runtime/assets.ts232L
-rw-r--r--mockup/template-poc/src/runtime/cache.ts263L
-rw-r--r--mockup/template-poc/src/runtime/layers.ts37L
-rw-r--r--mockup/template-poc/src/runtime/paths.ts38L
-rw-r--r--mockup/template-poc/src/runtime/render.ts58L
-rw-r--r--mockup/template-poc/src/runtime/router.ts19L
-rw-r--r--mockup/template-poc/src/runtime/tar.ts137L
-rw-r--r--mockup/template-poc/src/runtime/types.ts33L
-rw-r--r--mockup/template-poc/templates/overlays/acme-brand/asset/acme-logo.svg4L
-rw-r--r--mockup/template-poc/templates/overlays/acme-brand/component/topbar.hbs24L
-rw-r--r--mockup/template-poc/templates/overlays/acme-brand/style/global.css18L
-rw-r--r--mockup/template-poc/templates/overlays/acme-holiday/login/identifier.hbs19L
-rw-r--r--mockup/template-poc/templates/overlays/acme-holiday/style/login.css11L
-rw-r--r--mockup/template-poc/templates/system/account/apps.hbs10L
-rw-r--r--mockup/template-poc/templates/system/account/overview.hbs75L
-rw-r--r--mockup/template-poc/templates/system/account/security.hbs29L
-rw-r--r--mockup/template-poc/templates/system/asset/hex-grid-dark.svg339L
-rw-r--r--mockup/template-poc/templates/system/asset/hex-grid-light.svg339L
-rw-r--r--mockup/template-poc/templates/system/component/icon.hbs55L
-rw-r--r--mockup/template-poc/templates/system/component/layout.hbs21L
-rw-r--r--mockup/template-poc/templates/system/component/page-header.hbs4L
-rw-r--r--mockup/template-poc/templates/system/component/styles.hbs3L
-rw-r--r--mockup/template-poc/templates/system/component/text-field.hbs4L
-rw-r--r--mockup/template-poc/templates/system/component/topbar.hbs26L
-rw-r--r--mockup/template-poc/templates/system/login/identifier.hbs18L
-rw-r--r--mockup/template-poc/templates/system/style/account-base.css185L
-rw-r--r--mockup/template-poc/templates/system/style/account.css1L
-rw-r--r--mockup/template-poc/templates/system/style/base.css560L
-rw-r--r--mockup/template-poc/templates/system/style/global.css1L
-rw-r--r--mockup/template-poc/templates/system/style/login-base.css438L
-rw-r--r--mockup/template-poc/templates/system/style/login.css1L
-rw-r--r--server/auth.example.yaml13L
-rw-r--r--server/migrations/sqlite/realm/001_init.sql86L
-rw-r--r--server/migrations/sqlite/realm/002_oidc.sql55L
-rw-r--r--server/migrations/sqlite/realm/003_remove_sessions.sql1L
-rw-r--r--server/migrations/sqlite/realm/004_consent_mode.sql1L
-rw-r--r--server/migrations/sqlite/realm/005_app_bans.sql7L
-rw-r--r--server/migrations/sqlite/system/001_init.sql66L
-rw-r--r--server/migrations/sqlite/system/002_client_hosts.sql8L
-rw-r--r--server/migrations/sqlite/system/003_system_admin.sql1L
-rw-r--r--server/migrations/sqlite/system/004_client_mapping.sql27L
-rw-r--r--server/migrations/sqlite/system/005_sessions.sql45L
-rw-r--r--server/migrations/sqlite/system/006_system_oidc.sql68L
-rw-r--r--server/migrations/sqlite/system/007_client_consents.sql14L
-rw-r--r--server/migrations/sqlite/system/008_system_settings.sql14L
-rw-r--r--server/package-lock.json745L
-rw-r--r--server/package.json18L
-rw-r--r--server/scripts/seed-demo.js328L
-rw-r--r--server/src/app.js9L
-rw-r--r--server/src/controller/account/client-consent.js119L
-rw-r--r--server/src/controller/admin/bans/create.js69L
-rw-r--r--server/src/controller/admin/bans/delete.js35L
-rw-r--r--server/src/controller/admin/client-hosts.js89L
-rw-r--r--server/src/controller/admin/clients.js114L
-rw-r--r--server/src/controller/admin/consents/revoke.js64L
-rw-r--r--server/src/controller/admin/realm-email-domains.js116L
-rw-r--r--server/src/controller/admin/realm-hosts.js86L
-rw-r--r--server/src/controller/admin/realm-providers.js154L
-rw-r--r--server/src/controller/admin/realms/create.js25L
-rw-r--r--server/src/controller/admin/realms/delete.js26L
-rw-r--r--server/src/controller/admin/realms/list.js20L
-rw-r--r--server/src/controller/admin/roles/list.js17L
-rw-r--r--server/src/controller/admin/session/me.js15L
-rw-r--r--server/src/controller/admin/sessions/list.js26L
-rw-r--r--server/src/controller/admin/sessions/revoke-realm.js34L
-rw-r--r--server/src/controller/admin/sessions/terminate.js36L
-rw-r--r--server/src/controller/admin/settings.js39L
-rw-r--r--server/src/controller/admin/system-settings.js44L
-rw-r--r--server/src/controller/admin/user-sessions-global/list.js24L
-rw-r--r--server/src/controller/admin/user-sessions-global/terminate-all.js28L
-rw-r--r--server/src/controller/admin/user-sessions-global/terminate.js32L
-rw-r--r--server/src/controller/admin/user-sessions/list.js26L
-rw-r--r--server/src/controller/admin/user-sessions/terminate-all.js34L
-rw-r--r--server/src/controller/admin/users-global/get.js23L
-rw-r--r--server/src/controller/admin/users-global/list.js20L
-rw-r--r--server/src/controller/admin/users/create.js38L
-rw-r--r--server/src/controller/admin/users/get.js28L
-rw-r--r--server/src/controller/admin/users/list.js27L
-rw-r--r--server/src/controller/admin/users/lookup.js26L
-rw-r--r--server/src/controller/admin/users/membership.js25L
-rw-r--r--server/src/controller/admin/users/roles.js25L
-rw-r--r--server/src/controller/app/account.js28L
-rw-r--r--server/src/controller/app/admin.js31L
-rw-r--r--server/src/controller/consent/decide.js67L
-rw-r--r--server/src/controller/consent/show.js38L
-rw-r--r--server/src/controller/login/logout.js23L
-rw-r--r--server/src/controller/login/password.js171L
-rw-r--r--server/src/controller/login/resolve.js44L
-rw-r--r--server/src/controller/manifest.js10L
-rw-r--r--server/src/controller/oidc.js851L
-rw-r--r--server/src/controller/realm/show.js16L
-rw-r--r--server/src/controller/session/select.js80L
-rw-r--r--server/src/controller/session/show.js56L
-rw-r--r--server/src/index.js146L
-rw-r--r--server/src/lib/admin-auth.js92L
-rw-r--r--server/src/lib/admin-branding.js185L
-rw-r--r--server/src/lib/admin-client-hosts.js147L
-rw-r--r--server/src/lib/admin-clients.js808L
-rw-r--r--server/src/lib/admin-realm-email-domains.js142L
-rw-r--r--server/src/lib/admin-realm-hosts.js129L
-rw-r--r--server/src/lib/admin-realm-providers.js536L
-rw-r--r--server/src/lib/admin-realms.js252L
-rw-r--r--server/src/lib/admin-sessions.js127L
-rw-r--r--server/src/lib/admin-settings.js151L
-rw-r--r--server/src/lib/admin-user-sessions.js78L
-rw-r--r--server/src/lib/admin-users.js882L
-rw-r--r--server/src/lib/apps.js88L
-rw-r--r--server/src/lib/bans.js114L
-rw-r--r--server/src/lib/config.js186L
-rw-r--r--server/src/lib/consent-request.js65L
-rw-r--r--server/src/lib/consents.js162L
-rw-r--r--server/src/lib/db/index.js19L
-rw-r--r--server/src/lib/db/migrate.js212L
-rw-r--r--server/src/lib/db/params.js31L
-rw-r--r--server/src/lib/db/query.js209L
-rw-r--r--server/src/lib/db/sqlite.js119L
-rw-r--r--server/src/lib/host-context.js76L
-rw-r--r--server/src/lib/http/http-error.js18L
-rw-r--r--server/src/lib/http/http-ok.js7L
-rw-r--r--server/src/lib/http/http-response.js22L
-rw-r--r--server/src/lib/login.js95L
-rw-r--r--server/src/lib/oidc/clients.js131L
-rw-r--r--server/src/lib/oidc/context.js83L
-rw-r--r--server/src/lib/oidc/keys.js108L
-rw-r--r--server/src/lib/oidc/requests.js206L
-rw-r--r--server/src/lib/pagination.js69L
-rw-r--r--server/src/lib/password.js97L
-rw-r--r--server/src/lib/policy.js78L
-rw-r--r--server/src/lib/realm.js638L
-rw-r--r--server/src/lib/refresh-tokens.js130L
-rw-r--r--server/src/lib/secrets.js126L
-rw-r--r--server/src/lib/session.js734L
-rw-r--r--server/src/lib/system-clients.js56L
-rw-r--r--server/src/lib/system-settings.js103L
-rw-r--r--server/src/lib/users.js307L
-rw-r--r--server/test/admin-branding.test.js126L
-rw-r--r--server/test/admin-clients.test.js50L
-rw-r--r--server/test/admin-list-pagination-users.test.js365L
-rw-r--r--server/test/admin-list-pagination.test.js451L
-rw-r--r--server/test/admin-realms.test.js257L
-rw-r--r--server/test/config.test.js148L
-rw-r--r--server/test/helpers/http-harness.js677L
-rw-r--r--server/test/helpers/session-harness.js69L
-rw-r--r--server/test/http-account-chooser.test.js150L
-rw-r--r--server/test/http-admin-clients.test.js420L
-rw-r--r--server/test/http-admin-consent.test.js231L
-rw-r--r--server/test/http-admin-email-domains.test.js280L
-rw-r--r--server/test/http-admin-hosts.test.js426L
-rw-r--r--server/test/http-admin-membership.test.js435L
-rw-r--r--server/test/http-admin-providers.test.js481L
-rw-r--r--server/test/http-admin-realm-settings.test.js241L
-rw-r--r--server/test/http-admin-realms.test.js425L
-rw-r--r--server/test/http-admin-sessions.test.js382L
-rw-r--r--server/test/http-app-hosts.test.js111L
-rw-r--r--server/test/http-bans.test.js447L
-rw-r--r--server/test/http-branding.test.js301L
-rw-r--r--server/test/http-client-secrets.test.js186L
-rw-r--r--server/test/http-consent.test.js388L
-rw-r--r--server/test/http-discovery.test.js128L
-rw-r--r--server/test/http-login.test.js232L
-rw-r--r--server/test/http-oidc-flows.test.js271L
-rw-r--r--server/test/http-session-reauth.test.js198L
-rw-r--r--server/test/http-system-admins.test.js137L
-rw-r--r--server/test/pagination.test.js94L
-rw-r--r--server/test/password.test.js28L
-rw-r--r--server/test/policy.test.js123L
-rw-r--r--server/test/realm.test.js217L
-rw-r--r--server/test/secrets.test.js349L
-rw-r--r--server/test/session-realm-bindings.test.js224L
-rw-r--r--server/test/session.test.js410L
-rw-r--r--server/test/system-settings.test.js112L
-rw-r--r--server/test/user-sessions-global.test.js393L
-rw-r--r--server/test/user-sessions.test.js449L
-rw-r--r--tools/css-check/align.mjs444L
-rw-r--r--tools/css-check/check.mjs591L
-rw-r--r--tools/css-check/fixtures/email-domains.html83L
-rw-r--r--tools/css-check/fixtures/negative-degenerate.html39L
-rw-r--r--tools/css-check/fixtures/negative-misaligned.html56L
-rw-r--r--tools/css-check/fixtures/provider-domains.html59L
-rw-r--r--tools/css-check/fixtures/providers.html95L
-rw-r--r--tools/css-check/fixtures/two-line-rows.html94L
-rw-r--r--tools/css-check/fixtures/user-sessions.html116L