Closed aminnairi closed 5 months ago
Hi @aminnairi,
You have the option to protect your instance using OIDC (OpenID Connect). Simply enable and configure it in the .env
file as shown below:
# OIDC - OpenID Connect
# 1. Sign up for an account at https://auth0.com.
# 2. Navigate to https://manage.auth0.com/ to create a new application tailored to your specific requirements.
# For those seeking an open-source solution, check out: https://github.com/panva/node-oidc-provider
OIDC_ENABLED=true
OIDC_ISSUER_BASE_URL='https://server.example.com'
OIDC_BASE_URL='http://localhost:8080' # https://c2c.mirotalk.com
OIDC_CLIENT_ID='ClientID'
OIDC_CLIENT_SECRET='ClientSecret'
OIDC_AUTH_REQUIRED=false # set to true if authentication is required for all routes
SESSION_SECRET='mirotalk-c2c-oidc-secret'
OpenID Connect (OIDC) is an authentication layer on top of the OAuth 2.0 protocol. It allows clients to verify the identity of end-users based on the authentication performed by an authorization server. OIDC provides a single sign-on (SSO) solution, enabling users to authenticate once and gain access to multiple applications.
Additionally, MiroTalk C2C can be used in combination with MiroTalk WEB component to manage users and room scheduling effectively.
Thank you for this exhaustive answer, I'm glad you described what OIDC was because I have little knowledge about it but I understand better. And your answer is very clear and beginner-friendly :pray:
I'm now curious about it, is it possible to host its own OIDC issuer server by any chance? I'd like to know more by tinkering with it on premises and it would be cool to not rely on another external issuer (although I have no trouble using Auth0 if I must).
Hi!
You're welcome! I'm glad my explanation helped you understand OIDC better. It's a fascinating topic, and it's great that you're interested in learning more about it.
Yes, you can definitely host your own OIDC issuer server! This way, you won't need to rely on an external service like Auth0 (though Auth0 is great too). Hosting your own server gives you more control and flexibility. One of them can be keycloak
Keycloak
Here’s a high-level overview of the steps to set up your own OIDC server using one of these tools (e.g., Keycloak):
Install Keycloak:
Configure Keycloak:
Integrate with Applications:
Security and Maintenance:
If you have any questions or doubts, feel free to join our MiroTalk community on Discord. We'd love to help you out! You can join us here.
Have a good day! Miroslav
I would like to be able to prevent anyone to create a room without my consent.
But I would also like to allow people that I allow to participate in a visioconference.
It would be great to be able to have an administrator account, and to have a random string generator for creating random rooms' name so that it can then be accessed only by those who have the link.
This would prevent unwanted access and unecessary spam of the server on-premises like AWS EC2 and prevent having a bill that would go too far.