{"id":26910200,"url":"https://github.com/zhima-mochi/go-authentication-service","last_synced_at":"2025-08-02T21:37:38.657Z","repository":{"id":164662441,"uuid":"637792108","full_name":"Zhima-Mochi/go-authentication-service","owner":"Zhima-Mochi","description":"The go-authentication-service package is a comprehensive authentication solution for Go applications. It provides various components and utilities to facilitate user authentication and session management.","archived":false,"fork":false,"pushed_at":"2023-05-27T10:34:44.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T08:26:17.968Z","etag":null,"topics":["authentication","cookie","golang","session"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/Zhima-Mochi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-05-08T12:20:41.000Z","updated_at":"2023-08-30T16:18:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c43deee0-e369-493f-91d6-bf71a18c5a73","html_url":"https://github.com/Zhima-Mochi/go-authentication-service","commit_stats":null,"previous_names":["zhima-mochi/go-user-service"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Fgo-authentication-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Fgo-authentication-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Fgo-authentication-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zhima-Mochi%2Fgo-authentication-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zhima-Mochi","download_url":"https://codeload.github.com/Zhima-Mochi/go-authentication-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246647447,"owners_count":20811312,"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":["authentication","cookie","golang","session"],"created_at":"2025-04-01T13:31:41.241Z","updated_at":"2025-04-01T13:31:41.848Z","avatar_url":"https://github.com/Zhima-Mochi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Authentication Service\n\nThe `go-authentication-service` package is a comprehensive authentication solution for Go applications. It provides various components and utilities to facilitate user authentication and session management. This README document serves as a guide to understand the structure and usage of the package.\n\n## Table of Contents\n- [Directory Structure](#directory-structure)\n- [Installation](#installation)\n- [Components](#components)\n  - [Auth Registry](#auth-registry)\n  - [Cookie Manager](#cookie-manager)\n  - [Session Manager](#session-manager)\n  - [Utility](#utility)\n- [Example](#example)\n- [License](#license)\n\n## Directory Structure\n\nThe `go-authentication-service` package follows the following directory structure:\n\n```\n├── external\n│   ├── cache_interface.go\n│   └── encryptor_interface.go\n└── service\n    ├── authRegistry\n    │   ├── authRegistry.go\n    │   └── authRegistry_interface.go\n    ├── cookieManager\n    │   ├── cookieManager.go\n    │   └── cookieManager_interface.go\n    ├── sessionManager\n    │   ├── option.go\n    │   ├── session\n    │   │   ├── session.go\n    │   │   └── session_interface.go\n    │   ├── sessionManager.go\n    │   └── sessionManager_interface.go\n    └── utility\n        ├── cache.go\n        ├── encryptor.go\n        └── encryptorOption.go\n```\n\n## Installation\n\nTo install the `go-authentication-service` package, you can use the `go get` command:\n\n```shell\ngo get github.com/Zhima-Mochi/go-authentication-service\n```\n\n## Components\n\nThe `go-authentication-service` package consists of the following components:\n\n### Auth Registry\n\nThe `Auth Registry` component provides functionality to register and manage oauth2 authentication providers.\nSee [Auth Registry Interface](./service/authRegistry/authRegistry_interface.go) for more details.\n\n### Cookie Manager\n\nThe `Cookie Manager` component handles the management of cookies related to user sessions.\nSee [Cookie Manager Interface](./service/cookieManager/cookieManager_interface.go) for more details.\n\n### Session Manager\n\nThe `Session Manager` component is responsible for managing user sessions.\nSee [Session Manager Interface](./service/sessionManager/sessionManager_interface.go) for more details.\n\n### Utility\n\nThe `Utility` package provides various utility functions used by the authentication service and also offers implementations of interfaces defined in the `external` package.\nSee [Utility Folder](./service/utility) for more details.\n\n## Example\n\nSee [Example](./example/main.go) for a simple example of how to use the `go-authentication-service` package.\n\n## License\n\nThe `go-authentication-service` package is distributed under the [LICENSE](./LICENSE) file. Please refer to the license for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhima-mochi%2Fgo-authentication-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhima-mochi%2Fgo-authentication-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhima-mochi%2Fgo-authentication-service/lists"}