{"id":19011474,"url":"https://github.com/PerryWerneck/libudjatusers","last_synced_at":"2025-04-17T02:33:23.658Z","repository":{"id":43674292,"uuid":"444450284","full_name":"PerryWerneck/libudjatusers","owner":"PerryWerneck","description":"User/Session monitor and library for udjat.","archived":false,"fork":false,"pushed_at":"2025-02-20T10:51:15.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T04:38:51.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerryWerneck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"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":"2022-01-04T14:30:23.000Z","updated_at":"2024-11-11T04:05:04.000Z","dependencies_parsed_at":"2023-12-02T16:27:47.730Z","dependency_job_id":"752a11ad-04d7-4046-91bd-1e16c5242cca","html_url":"https://github.com/PerryWerneck/libudjatusers","commit_stats":null,"previous_names":["perrywerneck/libudjatusers"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flibudjatusers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flibudjatusers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flibudjatusers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Flibudjatusers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerryWerneck","download_url":"https://codeload.github.com/PerryWerneck/libudjatusers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249303831,"owners_count":21247751,"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-11-08T19:14:26.122Z","updated_at":"2025-04-17T02:33:23.353Z","avatar_url":"https://github.com/PerryWerneck.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User/Session monitor and library for udjat.\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![CodeQL](https://github.com/PerryWerneck/udjat-module-users/workflows/CodeQL/badge.svg?branch=master)\n[![build result](https://build.opensuse.org/projects/home:PerryWerneck:udjat/packages/udjat-module-users/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:udjat/udjat-module-users)\n\nWatch active users sessions emitting UDJAT alerts (http call, script, etc) based on user's session events.\n\n## Using agent\n\n### Event names\n\n * *Already active*: Session is active on startup\n * *Still active*: Session still active on shutdown\n * *Login*: User has logged in\n * *Logout*: User has logged out\n * *Lock*: Session was locked\n * *Unlock*: Session was unlocked\n * *Foreground*: Session is in foreground\n * *Background*: Session is in background\n * *sleep*: Session is preparing to sleep\n * *resume*: Session is resuming from sleep\n * *shutdown*: Session is shutting down\n * *pulse*: Session is alive\n\n### Examples\n\n[Udjat](../../../udjat) service configuration to emit an alert on user logoff:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" ?\u003e\n\u003cconfig log-debug='yes' log-trace='yes'\u003e\n\n\t\u003c!-- The HTTP module implements the http client backend --\u003e\n\t\u003cmodule name='http' required='yes' /\u003e\n\t\n\t\u003c!-- Implements user's monitor --\u003e\n\t\u003cmodule name='users' required='yes' /\u003e\n\t\n\t\u003c!-- Declare an user monitor agent --\u003e\n\t\u003cusers name='users' update-timer='60'\u003e\n\n\t\t\u003c!-- The XML text block contains the post payload --\u003e\n\t\t\u003calert name='logout' event='logout' max-retries='1' action='post' url='http://localhost'\u003e\n\t\t\t{\"user\":\"${username}\",\"macaddress\":\"${macaddress}\"}\n\t\t\u003c/alert\u003e\n\n\t\u003c/users\u003e\n\t\n\u003c/config\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerryWerneck%2Flibudjatusers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerryWerneck%2Flibudjatusers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerryWerneck%2Flibudjatusers/lists"}