/Library-WebRTC-Authentication

Authentication module for the WebRTC SDK

Primary LanguageJavaScript

Authentication

Handles SIP authentication and registration.

Namespace : bdsft_webrtc.default.authentication

Dependencies : SIP Stack

Elements

Element Type Description
authenticationUserid input Input for the authentication username.
password input Input for the password.
signIn button Button to sign in.
signOut button Button to sign out.
userid input Input for the SIP User ID.

Properties

Property Type Description
authenticationUserid string The username for the digest authentication as a response to the REGISTER request. If not specified the userid property will be used.
password string The password for the digest authentication as a response to the REGISTER request.
userid string The SIP User ID that will be used for the REGISTER request.

Configuration

Property Type Default Description
enableAuthenticationUserid boolean false True if the authenticationUserid should be shown.
register boolean false True if authentication should be shown if not registered.

Methods

Method Parameter Description
signIn() Signs in using the userid, password and authenticationUserid.
signOut() Signs out and clears the userid, password and authenticationUserid.