{"id":19277988,"url":"https://github.com/fryzcode/authenticationapi","last_synced_at":"2025-02-23T21:27:52.069Z","repository":{"id":216648154,"uuid":"741855890","full_name":"fryzcode/AuthenticationAPI","owner":"fryzcode","description":"The Authentication API provides methods for managing users and authentication processes.","archived":false,"fork":false,"pushed_at":"2024-02-05T11:37:50.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"refactor","last_synced_at":"2025-01-05T16:08:53.818Z","etag":null,"topics":["asp-net","aspnet-web-api","csharp"],"latest_commit_sha":null,"homepage":"","language":"C#","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/fryzcode.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":"2024-01-11T08:54:41.000Z","updated_at":"2024-07-03T08:31:33.000Z","dependencies_parsed_at":"2024-01-28T14:43:43.547Z","dependency_job_id":"e3d8df6f-8466-4a6d-938d-d3c68a949086","html_url":"https://github.com/fryzcode/AuthenticationAPI","commit_stats":null,"previous_names":["feryazhacimuradov/temporaryname","fryzcode/authenticationapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fryzcode%2FAuthenticationAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fryzcode%2FAuthenticationAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fryzcode%2FAuthenticationAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fryzcode%2FAuthenticationAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fryzcode","download_url":"https://codeload.github.com/fryzcode/AuthenticationAPI/tar.gz/refs/heads/refactor","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240382825,"owners_count":19792703,"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":["asp-net","aspnet-web-api","csharp"],"created_at":"2024-11-09T21:07:33.118Z","updated_at":"2025-02-23T21:27:52.036Z","avatar_url":"https://github.com/fryzcode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication API\n\nThe Authentication API provides methods for managing users and authentication processes.\n\n## Methods\n\n### 1. Register\n\nRegisters a new user in the system.\n\n**Endpoint:** `POST /api/auth/register`\n\n**Request Parameters:**\n```json\n{\n  \"username\": \"exampleUser\",\n  \"email\": \"user@example.com\",\n  \"password\": \"password123\",\n  \"roles\": [\"user\"]\n}\n\n```\n\n### 2. Login\n\nAuthenticate the user with their credentials.\n\n**Endpoint:** `POST /api/auth/login`\n\n**Request Parameters:**\n```json\n{\n  \"username\": \"exampleUser\",\n  \"password\": \"password123\"\n}\n```\n\n### 3. ConfirmEmail\n\nConfirm the user's email address after registration.\n\n**Endpoint:** `POST /api/auth/confirm-email`\n\n**Request Parameters:**\n```json\n{\n  \"email\": \"user@example.com\",\n  \"token\": \"confirmationToken123\"\n}\n```\n\n### 4. LoginWithOTP\n\nAuthenticate the user using a one-time password (OTP).\n\n**Endpoint:** `POST /api/auth/login-2FA`\n\n**Request Parameters:**\n```json\n{\n  \"username\": \"exampleUser\",\n  \"otp\": \"123456\"\n}\n```\n\n### 5. RefreshToken\n\nRefresh the access token using a refresh token.\n\n**Endpoint:** `POST /api/auth/refresh-token`\n\n**Request Parameters:**\n```json\n{\n  \"accessToken\": {\n    \"token\": \"accessToken123\",\n    \"expiryTokenDate\": \"2024-02-05T11:30:26.187Z\"\n  },\n  \"refreshToken\": {\n    \"token\": \"refreshToken1234\",\n    \"expiryTokenDate\": \"2024-02-05T11:30:26.187Z\"\n  }\n}\n```\n\n### 6. ForgotPassword\n\nInitiate the user password recovery process.\n\n**Endpoint:** `POST /api/auth/forgot-password`\n\n**Request Parameters:**\n```json\n{\n  \"email\": \"user@example.com\"\n}\n```\n\n### 7. ResetPassword\n\nReset the user's password after a password reset request.\n\n**Endpoint:** `POST /api/auth/reset-password`\n\n**Request Parameters:**\n```json\n{\n  \"password\": \"newPassword\",\n  \"confirmPassword\": \"confirmPassword\",\n  \"email\": \"user@example.com\",\n  \"token\": \"token123\"\n}\n```\n\n## Notes\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffryzcode%2Fauthenticationapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffryzcode%2Fauthenticationapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffryzcode%2Fauthenticationapi/lists"}