Giter VIP home page Giter VIP logo

cryblanka / blueauth Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 57 KB

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.

Home Page: https://blanka.lol/validation/bsky.php

License: MIT License

PHP 33.57% Hack 66.43%
api auth authentication bluesky bsky php bskyapp

blueauth's Introduction

This 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.

Blueauth

Pre

Please install socialweb/atproto composer package.

composer require socialweb/atproto

Components

  • Frontend:

    • HTML, CSS (Bootstrap), and JavaScript are used for the user interface.
    • Users input their Bluesky handle and are guided through the verification process.
    • Feedback alerts provide information on the verification status.
  • Backend:

    • bsky-api-string.php: Generates a random string associated with the user's Bluesky handle.
    • bsky-api-auth.php: Validates the ownership of the account by comparing the posted string with the generated one.
    • bsky-local-api.php: Grabs the latest feed post.

Usage

  1. Input Bluesky Handle: Users enter their Bluesky handle in the provided field.
  2. Generate Random String: Upon submission, a unique random string is generated and displayed.
  3. Post on Bluesky: Users post the generated string on their Bluesky account for verification.
  4. Validation: The system validates the ownership based on the posted string.
  5. Feedback: Users receive immediate feedback on the validation status through alerts.

Technologies Used

  • HTML, CSS (Bootstrap), JavaScript for frontend development.
  • PHP for backend handling of string generation and authentication.
  • cURL for making requests to Bluesky API.

Note

  • 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.
  • Security: Implement security measures, such as input validation and sanitization, to prevent vulnerabilities like SQL injection and cross-site scripting (XSS).
  • Testing: Thoroughly test the system in various scenarios to ensure reliability and security.

This system provides a basic framework for Bluesky authentication and can be extended and customized according to specific requirements and security considerations.

Built with love by Blanka in Poland ๐Ÿ’œ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.