miroslavpejic85/mirotalksfu

OIDC options as "peer_name"

Opened this issue · 0 comments

Hello Miroslav,

Thank you for your hard work on Mirotalk SFU, it is impressive.

Feature request

If OIDC is enabled, there should be the option in app/src/config.js to set items from req.oidc.user as the peer_name.

When this option is set, peers cannot set their own peer_name.

The following options from the /profile endpoint would be the most useful: "name", "preferred_username", and "email".

{
  "sid": "1fbdc872-0d58-4ca4-860e-0b335ba53281",
  "jti": "7f5f08f0-88b2-42a7-a3d4-0349b499fd08",
  "sub": "e9f8eaf7-5823-41c6-ab6f-e93281ca1a4a",
  "typ": "ID",
  "session_state": "1fbdc872-0d58-4ca4-860e-0b335ba53281",
  "acr": "1",
  "name": "Andy Molenda",
  "preferred_username": "andymolenda",
  "locale": "en",
  "given_name": "Andy",
  "family_name": "Molenda",
  "email": "andymolenda@example.com"
}

Pros

This would allow for automatic name entry from OIDC, help prevent name collisions, and allow matching usernames to server-side recordings.