{"id":23122681,"url":"https://github.com/folio-org/mod-login","last_synced_at":"2025-09-13T14:03:54.144Z","repository":{"id":37549412,"uuid":"89534653","full_name":"folio-org/mod-login","owner":"folio-org","description":"Module to handle username/password login","archived":false,"fork":false,"pushed_at":"2025-03-14T08:16:46.000Z","size":702,"stargazers_count":3,"open_issues_count":1,"forks_count":7,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T23:05:05.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folio-org.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-26T23:12:31.000Z","updated_at":"2025-03-14T08:16:48.000Z","dependencies_parsed_at":"2023-12-28T07:31:56.891Z","dependency_job_id":"4109e97d-15ea-4b9c-9e69-bfb2d29bde74","html_url":"https://github.com/folio-org/mod-login","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/folio-org/mod-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Fmod-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Fmod-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Fmod-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Fmod-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folio-org","download_url":"https://codeload.github.com/folio-org/mod-login/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Fmod-login/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265896113,"owners_count":23845426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T07:29:38.570Z","updated_at":"2025-07-19T06:06:32.642Z","avatar_url":"https://github.com/folio-org.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mod-login\n\nCopyright (C) 2016-2025 The Open Library Foundation\n\nThis software is distributed under the terms of the Apache License,\nVersion 2.0. See the file \"[LICENSE](LICENSE)\" for more information.\n\n# Introduction\n\nThis module is responsible for verifying the user's identity and\nissuing a valid JWT that can be used for system access. The implementation of\nthis module may vary (username/password, SAML, OAuth, etc.), and it is possible\nfor more than one Authentication module to exist in a running system. The\ndefault implementation uses a simple username and password for authentication.\n\n# Environment variables\n\n* LOGIN\\_COOKIE\\_SAMESITE - Configures the SameSite attribute of the login token cookies. Must be `Strict`, `Lax` or `None`. Defaults to `Lax` if not set.\n\n# Module properties\n\nThe following module parameters can be specified on the command line.\nSee \u003chttps://github.com/folio-org/raml-module-builder#command-line-options\u003e\nWhen specified, these will take precedence over the hard-coded defaults.\n\n* login.fail.to.warn.attempts - number of login attempts before warn (default value - 3)\n* login.fail.attempts - number of login attempts before block user account (default value - 5)\n* login.fail.timeout - after timeout in minutes, fail login attempts will be dropped (default value - 10)\n\n# Mod-configuration entries\n\nThe following configuration entries can be specified in mod-configuration.\nWhen present, these will take precedence over the hard-coded defaults and\nthe module parameter values specified on the command line.\n\n| module     | code                        | configName           | Description                                                                         |\n|:-----------|:----------------------------|:---------------------|:------------------------------------------------------------------------------------|\n| EVENT\\_LOG | STATUS                      | {any}                | Enable/disable event logging.  If disabled, events will not be logged, nor will you be able to retreive previously logged entries (default: enabled=false) |\n| EVENT\\_LOG | SUCESSFUL\\_LOGIN\\_ATTEMPT   | {any}                | If enabled, log successful login attempts to the event log (default: enabled=false) |\n| EVENT\\_LOG | FAILED\\_LOGIN\\_ATTEMPT      | {any}                | If enabled, log failed login attempts to the event log (default: enabled=false)     |\n| EVENT\\_LOG | PASSWORD\\_RESET             | {any}                | If enabled, log password reset events to the event log (default: enabled=false)     |\n| EVENT\\_LOG | PASSWORD\\_CREATE            | {any}                | If enabled, log password creation events to the event log (default: enabled=false)  |\n| EVENT\\_LOG | PASSWORD\\_CHANGE            | {any}                | If enabled, log password change events to the event log (default: enabled=false)    |\n| EVENT\\_LOG | USER\\_BLOCK                 | {any}                | If enabled, log user blocked events to the event log (default: enabled=false)       |\n| {any}      | login.fail.attempts         | {any}                | Number of login attempts before block user account (default: value=5)               |\n| {any}      | login.fail.to.warn.attempts | {any}                | Number of login attempts before warn (default: value=3)                             |\n| {any}      | login.fail.timeout          | {any}                | After timeout in minutes, fail login attempts will be dropped (default: value=10)   |\n| {any}      | {any}                       | login.history.number | Number of previously used passwords which should factor into the \"has this password been previously used\" check (default: value=10) |\n\n# Additional information\n\nThe [raml-module-builder](https://github.com/folio-org/raml-module-builder) framework.\n\nOther [modules](https://dev.folio.org/source-code/#server-side).\n\nOther FOLIO Developer documentation is at [dev.folio.org](https://dev.folio.org/)\n\n### Issue tracker\n\nSee project [MODLOGIN](https://issues.folio.org/browse/MODLOGIN)\nat the [FOLIO issue tracker](https://dev.folio.org/guidelines/issue-tracker).\n\n### ModuleDescriptor\n\nSee the built `target/ModuleDescriptor.json` for the interfaces that this module\nrequires and provides, the permissions, and the additional module metadata.\n\n### API documentation\n\nThis module's [API documentation](https://dev.folio.org/reference/api/#mod-login).\n\n### Code analysis\n\n[SonarQube analysis](https://sonarcloud.io/dashboard?id=org.folio%3Amod-login).\n\n### Download and configuration\n\nThe built artifacts for this module are available.\nSee [configuration](https://dev.folio.org/download/artifacts) for repository access,\nand the [Docker image](https://hub.docker.com/r/folioorg/mod-login/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Fmod-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolio-org%2Fmod-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Fmod-login/lists"}