{"id":20687024,"url":"https://github.com/cryblanka/blueauth","last_synced_at":"2026-04-21T09:31:43.805Z","repository":{"id":234339572,"uuid":"788697341","full_name":"CryBlanka/blueauth","owner":"CryBlanka","description":"This is a custom authentication system designed for Bluesky, a social media platform. The system facilitates the verification of user ownership by generating and validating a unique string.","archived":false,"fork":false,"pushed_at":"2024-05-01T19:09:19.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T00:46:55.084Z","etag":null,"topics":["api","auth","authentication","bluesky","bsky","bskyapp","php"],"latest_commit_sha":null,"homepage":"https://blanka.lol/validation/bsky.php","language":"Hack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CryBlanka.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":"2024-04-18T22:56:12.000Z","updated_at":"2024-10-22T23:23:04.000Z","dependencies_parsed_at":"2025-01-17T16:35:20.568Z","dependency_job_id":"600440e0-9452-4cba-a2b4-88a51caa06ac","html_url":"https://github.com/CryBlanka/blueauth","commit_stats":null,"previous_names":["cryblanka/bluesky-auth-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CryBlanka/blueauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryBlanka%2Fblueauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryBlanka%2Fblueauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryBlanka%2Fblueauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryBlanka%2Fblueauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CryBlanka","download_url":"https://codeload.github.com/CryBlanka/blueauth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryBlanka%2Fblueauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263901592,"owners_count":23527438,"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":["api","auth","authentication","bluesky","bsky","bskyapp","php"],"created_at":"2024-11-16T22:55:29.137Z","updated_at":"2026-04-21T09:31:43.765Z","avatar_url":"https://github.com/CryBlanka.png","language":"Hack","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blueauth (Live demo: https://blanka.lol/validation/bsky.php)\nThis is a custom authentication system designed for Bluesky, a social media platform, allowing users to verify their ownership of an account. The system generates a unique random string for each user, which they must post on their Bluesky account for validation.\n\n![Blueauth](https://github.com/CryBlanka/blueauth/blob/main/blueauth-system.jpg?raw=true)\n\n## Pre\nPlease install [**socialweb/atproto**](https://github.com/socialweb-php/atproto) composer package.\n```bash\ncomposer require socialweb/atproto\n```\n\n## Components\n- **Frontend**: \n  - HTML, CSS (Bootstrap), and JavaScript are used for the user interface.\n  - Users input their Bluesky handle and are guided through the verification process.\n  - Feedback alerts provide information on the verification status.\n\n- **Backend**:\n  - `bsky-api-string.php`: Generates a random string associated with the user's Bluesky handle.\n  - `bsky-api-auth.php`: Validates the ownership of the account by comparing the posted string with the generated one.\n  - `bsky-local-api.php`: Grabs the latest feed post.\n\n## Usage\n1. **Input Bluesky Handle**: Users enter their Bluesky handle in the provided field.\n2. **Generate Random String**: Upon submission, a unique random string is generated and displayed.\n3. **Post on Bluesky**: Users post the generated string on their Bluesky account for verification.\n4. **Validation**: The system validates the ownership based on the posted string.\n5. **Feedback**: Users receive immediate feedback on the validation status through alerts.\n\n## Technologies Used\n- HTML, CSS (Bootstrap), JavaScript for frontend development.\n- PHP for backend handling of string generation and authentication.\n- cURL for making requests to Bluesky API.\n\n## Note\n- **Backend Integration**: Ensure proper integration and configuration of the backend scripts (`bsky-api-string.php` and `bsky-api-auth.php`) for the system to function correctly.\n- **Security**: Implement security measures, such as input validation and sanitization, to prevent vulnerabilities like SQL injection and cross-site scripting (XSS).\n- **Testing**: Thoroughly test the system in various scenarios to ensure reliability and security.\n\nThis system provides a basic framework for Bluesky authentication and can be extended and customized according to specific requirements and security considerations.\n\nBuilt with love by Blanka in Poland 💜\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryblanka%2Fblueauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryblanka%2Fblueauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryblanka%2Fblueauth/lists"}