{"id":24423940,"url":"https://github.com/mopp/mseauth","last_synced_at":"2025-04-12T07:51:08.759Z","repository":{"id":149753611,"uuid":"367931362","full_name":"mopp/mseauth","owner":"mopp","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-16T16:22:29.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T03:04:28.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mopp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-16T16:22:09.000Z","updated_at":"2022-07-05T09:16:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5943efa5-6090-403f-a076-2d0742e9837b","html_url":"https://github.com/mopp/mseauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fmseauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fmseauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fmseauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mopp%2Fmseauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mopp","download_url":"https://codeload.github.com/mopp/mseauth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537003,"owners_count":21120688,"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":"2025-01-20T10:48:18.040Z","updated_at":"2025-04-12T07:51:08.754Z","avatar_url":"https://github.com/mopp.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mseauth\n\nAuthentication and distributed session management.\n\n## How to run\n\n```console\nmix deps.get\nmix compile\niex -S mix\n```\n\n## How to run with cluster.\n\n```console\n\u003e docker-compose build\n\u003e docker-compose run --rm --service-ports mseauth1 mix release --overwrite\n\u003e docker-compose run --rm --service-ports mseauth1 mix ecto.create \n\u003e docker-compose up\n\n\u003e curl -X POST -H \"Content-Type: application/json\" http://0.0.0.0:8080/register -d '{\"identifier\": \"mopp\", \"password\": \"lgtm\"}'\n{\"status\":\"succeeded\"}%\n\n\u003e curl -X POST -H \"Content-Type: application/json\" http://0.0.0.0:8080/authenticate -d '{\"identifier\": \"mopp\", \"password\": \"lgtm\"}'\n{\"access_token\":{\"expired_at\":\"2021-05-16T16:58:04\",\"value\":\"77a2c4a3-48f9-421a-ab2c-87cfafc3690f\"},\"identifier\":\"f87bd5f4-bf1b-467c-a515-b6678dc9be25\",\"refresh\n_token\":{\"expired_at\":\"2021-05-16T18:58:04\",\"value\":\"c22cd5bf-bf18-49d4-8999-2b4494b227bf\"},\"status\":\"succeeded\"}%\n\n\u003e curl -X POST -H \"Content-Type: application/json\" http://0.0.0.0:8080/validate -d '{\"access_token\": \"77a2c4a3-48f9-421a-ab2c-87cfafc3690f\"}'\n{\"identifier\":\"f87bd5f4-bf1b-467c-a515-b6678dc9be25\",\"status\":\"succeeded\"}%\n\n\u003e mix end_to_end_test\n```\n\nClean up the database.\n```console\n\u003e docker-compose run --rm --service-ports mseauth1 mix ecto.drop\n\u003e docker-compose run --rm --service-ports mseauth1 mix ecto.create\n```\n\n## How to test\n\n```console\n\u003e docker-compose up -d postgres\n\u003e MIX_ENV=test mix ecto.create\n\u003e mix test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopp%2Fmseauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmopp%2Fmseauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopp%2Fmseauth/lists"}