Giter VIP home page Giter VIP logo

miroslavpejic85 / mirotalkwebrtc Goto Github PK

View Code? Open in Web Editor NEW
242.0 5.0 49.0 778 KB

๐Ÿ›  MiroTalk's WebRTC rooms scheduler.

Home Page: https://webrtc.mirotalk.com

License: GNU Affero General Public License v3.0

JavaScript 67.50% Dockerfile 0.37% CSS 14.32% HTML 15.38% Shell 2.43%
admin-dashboard webrtc videomeeting collaboration conferencing self-hosted video-conferencing webrtc-demos mirotalk mongodb

mirotalkwebrtc's Issues

Feature Request: Disable email verification

Hey

I try to run mirotalk on a kubernetes cluster. My problem is I don't have a mail server to rely on for the verification mails.

An ENV var to switch this feature off would be very helpful.

UI Design enchancement

Can I enhance the UI of the Login and Register Page of the website under hacktoberfest?

Slide up and down icons showing at the same time

When freshly visiting the page client.html both the icons( Slide up and slide down ) were showing up simultaneously which i think is a bug. however it sorts out when any of them is clicked but on refreshing the page same issue arises again n again.

Screenshot 2023-10-05 150648

I think i can fix it...so please assign me this issue.

Social login features

Social login features

Implementing social login features using Node.js typically involves leveraging OAuth and various OAuth providers like Facebook, Google, Twitter, GitHub, etc., to authenticate users. There are popular libraries like Passport.js that make this process relatively straightforward. Here's a general overview of how you might implement social login using Node.js:

Steps to Implement Social Login with Node.js:

  1. Set Up OAuth Providers:

    • Register your application with the OAuth provider(s) (e.g., Facebook, Google) to obtain client ID and secret.
    • Configure callback URLs for the OAuth flow.
  2. Initialize Node.js Project:

    • Create a Node.js project and initialize it using npm init.
  3. Install Required Packages:

    • Install necessary packages, especially Passport.js and the passport strategy for the specific OAuth provider(s) you intend to use.
  4. Configure Passport.js:

    • Initialize Passport.js and configure the strategy for the OAuth provider(s).
    • Implement Passport serialization and deserialization methods.
  5. Set Up Routes:

    • Define routes in your Node.js application to handle the authentication process.
    • Create routes for login, logout, and OAuth callback.
  6. Implement Authentication Middleware:

    • Create middleware to check if the user is authenticated for protecting routes that need authentication.
  7. Frontend Integration:

    • Create frontend components (e.g., buttons) that initiate the social login process.

Example Using Passport.js (with Google OAuth):

const express = require('express');
const passport = require('passport');
const GoogleStrategy = require('passport-google-oauth20').Strategy;

const app = express();

passport.use(new GoogleStrategy({
    clientID: GOOGLE_CLIENT_ID,
    clientSecret: GOOGLE_CLIENT_SECRET,
    callbackURL: '/auth/google/callback'
  },
  function(accessToken, refreshToken, profile, done) {
    // You can handle the retrieved user profile or create a new user here
    // This function is where you'd typically save the user to a database
    return done(null, profile);
  }
));

app.get('/auth/google',
  passport.authenticate('google', { scope: ['profile', 'email'] })
);

app.get('/auth/google/callback', 
  passport.authenticate('google', { failureRedirect: '/login' }),
  function(req, res) {
    // Successful authentication, redirect to success page or perform other actions
    res.redirect('/success');
  }
);

app.listen(9000, () => {
  console.log('Server is running on port 9000');
});

This is a basic setup using Passport.js with the Google OAuth strategy.
You'd need to adapt this code to your specific needs and integrate it with your backend and frontend accordingly.

Remember to secure sensitive information such as client secrets and keys. Storing them in environment variables is recommended.

The process might vary slightly based on the OAuth provider and the strategy you're implementing, but the fundamentals usually remain the same.

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.