ubiquity-os / ubiquity-os-plugin-installer

A GUI to install UbiquityOS plugins.
0 stars 8 forks source link

Implement GitHub authentication logic #9

Closed aybanda closed 1 month ago

aybanda commented 1 month ago

Description:

This PR introduces GitHub OAuth authentication for the UbiquityOS Plugin Installer by creating a new server.js file.

Key changes include:

Created server.js: Set up an Express server with Passport.js for handling GitHub authentication.

Integrated GitHub Strategy: Implemented Passport.js with the GitHub strategy to allow users to log in securely.

Session Management: Added session management to maintain user login state across requests.

Protected Route: Developed a protected route (/update-config) that allows authenticated users to update the configuration.

Implemented error handling for authentication failures


Feel free to modify any part of this description to better fit your style or to add any additional details you think are necessary!

0x4007 commented 1 month ago

We use typescript and link to the issue it solves this isn't going to work