Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. MiroTalk
  3. Email as default username since update to new config set-up is NOT great :)

Email as default username since update to new config set-up is NOT great :)

Scheduled Pinned Locked Moved Solved MiroTalk
40 Posts 7 Posters 433 Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jamesJ james

    I can confirm this seems to have no impact.
    Added the following lines to /app/data/env

    OIDC_FORCE_USERNAME=false
    OIDC_EMAIL_AS_USERNAME=false
    OIDC_NAME_AS_USERNAME=true
    

    Cloudron writes this to /run/mirotalksfu/env and /run/mirotalksfu/env is symlinked to /app/code/.env.
    So everything in that /app/data/env => /run/mirotalksfu/env => /app/code/.env is loaded, otherwise all the other settings would be missing.

    But now when checking the /app/code/app/src/config.js I see:

    peer_name: {
                    force: process.env.OIDC_USERNAME_FORCE !== 'false', // Require identity provider authentication
                    email: process.env.OIDC_USERNAME_AS_EMAIL !== 'false', // Request email claim
                    name: process.env.OIDC_USERNAME_AS_NAME === 'true', // Don't require full name
                }
    

    So from that I can conclude the env vars should be:

    OIDC_USERNAME_FORCE=false
    OIDC_USERNAME_AS_EMAIL=false
    OIDC_USERNAME_AS_NAME=true
    

    This now had the desired effect.

    I assume what @mirotalk-57bab571 wrote https://forum.cloudron.io/post/107999 was simply a typo or first draft of that variable names.


    Solution

    Use the following variables in /app/data/env

    OIDC_USERNAME_FORCE=false
    OIDC_USERNAME_AS_EMAIL=false
    OIDC_USERNAME_AS_NAME=true
    
    avatar1024A Online
    avatar1024A Online
    avatar1024
    wrote last edited by
    #29

    @james said in Email as default username since update to new config set-up is NOT great πŸ™‚:

    But now when checking the /app/code/app/src/config.js

    Also sorry, I feel I should know this by now, but where are the the app code directories? I can't seem to find them when I ssh on the server. In that case how can I would like to view the content of this file.

    jamesJ 1 Reply Last reply
    0
    • jamesJ james

      I can confirm this seems to have no impact.
      Added the following lines to /app/data/env

      OIDC_FORCE_USERNAME=false
      OIDC_EMAIL_AS_USERNAME=false
      OIDC_NAME_AS_USERNAME=true
      

      Cloudron writes this to /run/mirotalksfu/env and /run/mirotalksfu/env is symlinked to /app/code/.env.
      So everything in that /app/data/env => /run/mirotalksfu/env => /app/code/.env is loaded, otherwise all the other settings would be missing.

      But now when checking the /app/code/app/src/config.js I see:

      peer_name: {
                      force: process.env.OIDC_USERNAME_FORCE !== 'false', // Require identity provider authentication
                      email: process.env.OIDC_USERNAME_AS_EMAIL !== 'false', // Request email claim
                      name: process.env.OIDC_USERNAME_AS_NAME === 'true', // Don't require full name
                  }
      

      So from that I can conclude the env vars should be:

      OIDC_USERNAME_FORCE=false
      OIDC_USERNAME_AS_EMAIL=false
      OIDC_USERNAME_AS_NAME=true
      

      This now had the desired effect.

      I assume what @mirotalk-57bab571 wrote https://forum.cloudron.io/post/107999 was simply a typo or first draft of that variable names.


      Solution

      Use the following variables in /app/data/env

      OIDC_USERNAME_FORCE=false
      OIDC_USERNAME_AS_EMAIL=false
      OIDC_USERNAME_AS_NAME=true
      
      MiroTalkM Away
      MiroTalkM Away
      MiroTalk
      wrote last edited by MiroTalk
      #30

      @james said in Email as default username since update to new config set-up is NOT great πŸ™‚:

      I assume what @mirotalk-57bab571 wrote https://forum.cloudron.io/post/107999 was simply a typo or first draft of that variable names.

      Yes, you're absolutely right β€” the way you explained it is correct. I actually updated it in my last commit to make it more readable.

      OIDC_USERNAME_FORCE=false
      OIDC_USERNAME_AS_EMAIL=false
      OIDC_USERNAME_AS_NAME=true
      

      And here’s a quick explanation of each default setup:

      OIDC_USERNAME_FORCE=true        # Forces the username to match the OIDC email or name. 
                                      # If true, the user won't be able to change their name when joining a room.
      
      OIDC_USERNAME_AS_EMAIL=true     # Uses the OIDC email as the username.
      OIDC_USERNAME_AS_NAME=false     # Uses the OIDC name as the username.
      

      These options give you full control over how usernames are assigned during OIDC authentication for the meeting.

      Note

      By default, the email is used as the username when OIDC is enabled. This helps maintain user identity and trust, and also ensures that the correct Gravatar is displayed in the room (especially if the camera is off).

      In this default setup, the username cannot be edited by the user when joining a room.

      However, since MiroTalk SFU is designed to be flexible, this behavior is fully configurable. You can choose whether to use the email, the name, or allow users to set their own name β€” depending on your needs...

      1 Reply Last reply
      4
      • avatar1024A avatar1024

        @james said in Email as default username since update to new config set-up is NOT great πŸ™‚:

        But now when checking the /app/code/app/src/config.js

        Also sorry, I feel I should know this by now, but where are the the app code directories? I can't seem to find them when I ssh on the server. In that case how can I would like to view the content of this file.

        jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by james
        #31

        @avatar1024 said in Email as default username since update to new config set-up is NOT great πŸ™‚:

        Also sorry, I feel I should know this by now, but where are the the app code directories? I can't seem to find them when I ssh on the server. In that case how can I would like to view the content of this file.

        That is in the app itself.
        You can view that via the web terminal of the app itself.

        avatar1024A 1 Reply Last reply
        2
        • jamesJ james

          @avatar1024 said in Email as default username since update to new config set-up is NOT great πŸ™‚:

          Also sorry, I feel I should know this by now, but where are the the app code directories? I can't seem to find them when I ssh on the server. In that case how can I would like to view the content of this file.

          That is in the app itself.
          You can view that via the web terminal of the app itself.

          avatar1024A Online
          avatar1024A Online
          avatar1024
          wrote last edited by
          #32

          @james said in Email as default username since update to new config set-up is NOT great πŸ™‚:

          That is in the app itself.
          You can view that via the web terminal of the app itself.

          Oh yes of course, thanks!

          1 Reply Last reply
          0
          • avatar1024A Online
            avatar1024A Online
            avatar1024
            wrote last edited by
            #33

            Is it possible on the forum for a user to mark a post as the solution / mark a topic as solved?

            jdaviescoatesJ 1 Reply Last reply
            0
            • J joseph marked this topic as a question
            • J joseph has marked this topic as solved
            • J Offline
              J Offline
              joseph
              Staff
              wrote last edited by
              #34

              @avatar1024 I have seen many normal users do it. It's under Topic tool -> Ask as question / answer .

              1 Reply Last reply
              1
              • avatar1024A avatar1024

                Is it possible on the forum for a user to mark a post as the solution / mark a topic as solved?

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote last edited by
                #35

                @avatar1024 said in Email as default username since update to new config set-up is NOT great πŸ™‚:

                Is it possible on the forum for a user to mark a post as the solution / mark a topic as solved?

                Yes. First you have to edit the OP to make it a question. Then you have to mark the solution post as the answer.

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                1
                • avatar1024A Online
                  avatar1024A Online
                  avatar1024
                  wrote last edited by avatar1024
                  #36

                  For info the variables have changed again since today's update to 1.7.58. It is now:

                  OIDC_FORCE_USERNAME=false                          # Force the username to match OIDC email or name (true|false)
                  OIDC_EMAIL_AS_USERNAME=false                       # Set username as email from OIDC (true|false)
                  OIDC_NAME_AS_USERNAME=true                       # Set username as name from OIDC (true|false)
                  
                  MiroTalkM 1 Reply Last reply
                  1
                  • avatar1024A avatar1024

                    For info the variables have changed again since today's update to 1.7.58. It is now:

                    OIDC_FORCE_USERNAME=false                          # Force the username to match OIDC email or name (true|false)
                    OIDC_EMAIL_AS_USERNAME=false                       # Set username as email from OIDC (true|false)
                    OIDC_NAME_AS_USERNAME=true                       # Set username as name from OIDC (true|false)
                    
                    MiroTalkM Away
                    MiroTalkM Away
                    MiroTalk
                    wrote last edited by
                    #37

                    @avatar1024 said in Email as default username since update to new config set-up is NOT great πŸ™‚:

                    For info the variables have changed again since today's update to 1.7.58. It is now:

                    Oops, my mistake β€” it's been fixed in v1.7.59.

                    OIDC_USERNAME_FORCE=false
                    OIDC_USERNAME_AS_EMAIL=false
                    OIDC_USERNAME_AS_NAME=true 
                    
                    1 Reply Last reply
                    3
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote last edited by
                      #38

                      Is this something which makes sense to include directly in the package or should be left to the user? Can't quite make out what the best default behavior would be

                      avatar1024A 1 Reply Last reply
                      3
                      • nebulonN nebulon

                        Is this something which makes sense to include directly in the package or should be left to the user? Can't quite make out what the best default behavior would be

                        avatar1024A Online
                        avatar1024A Online
                        avatar1024
                        wrote last edited by avatar1024
                        #39

                        @nebulon said in Email as default username since update to new config set-up is NOT great πŸ™‚:

                        Is this something which makes sense to include directly in the package or should be left to the user? Can't quite make out what the best default behavior would be

                        To me it feels like these settings should indeed be included by default in the package. Reasons are:

                        1. letting users choosing their display name for a meeting is always best, so OIDC_FORCE_USERNAME=false by default in the package seems like a no-brainer.
                        2. having your email as your username/display name in a meeting seems very weird (though if at least you can change it that's less of a problem > 1.)
                        3. having your actual name as the default display name seems more logical (though still with the ability to change it > 1.)

                        What do other people think?

                        @MiroTalk said in Email as default username since update to new config set-up is NOT great πŸ™‚:

                        By default, the email is used as the username when OIDC is enabled. This helps maintain user identity and trust, and also ensures that the correct Gravatar is displayed in the room (especially if the camera is off).

                        Maintaining user identity and trust, and using the correct Gravatar should be dealt with differently by MiroTalk as using email as the username brings a very sub-optimal UX.

                        1 Reply Last reply
                        2
                        • imc67I Offline
                          imc67I Offline
                          imc67
                          translator
                          wrote last edited by
                          #40

                          Agree: false/false/true would be the best default but configurable in the env

                          1 Reply Last reply
                          2
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search