tkmn0 / SimpleWebRTCExample_iOS

Simple example for WebRTC on iOS written in swift5
MIT License
178 stars 49 forks source link

Authentication #24

Closed 9SL9 closed 4 years ago

9SL9 commented 4 years ago

Hi - thank you so much for sharing your hard work. This has helped me so much.

Do you know I could add in a simple password option so both people need to know a simple password before they are able to join?

Thanks

tkmn0 commented 4 years ago

Hi, thank you for your comment :)

  1. set up password input view.
  2. modify signaling message to be included a password field and value.
  3. validate password when received signaling message(here).

I think this is the easiest way because only need to change client side. If we need advanced options, I think we should change server side code.

Thanks too.

9SL9 commented 4 years ago

Thank you. Yes I was hoping to do it server side also. I guess this would mean looking for the value in the JSON. I will trying your suggestion and do it client side. Thanks