kWidget Authentication

kWidget Authentication enables onPage applications to trigger a remote login, and retrieve a Kaltura secret, for performing admin actions. This enables javascript applications, to authenticate with Kaltura without exposing user login credentials to the domain or having users login in on non-secure entry points.

Display a authentication status & login link, with ks callback


The easiest way to authenticate is with kWidget.auth.getWidget, which will:
<script src="http//cdnapi.kaltura.com/p/{partnerId}/sp/{partnerId}00/embedIframeJs/uiconf_id/{uiconf_id}/partner_id/{partnerId}"></script>
<script src="http://player.kaltura.com/kWidget/kWidget.auth.js"></script>
<div id="hostedAuthWidget"></div>
<script>
kWidget.auth.getWidget( "hostedAuthWidget", function( userObject ){
$authTable = $('<table>').css( 'width', '350px' );
$.each( userObject, function( key, value){
$authTable.append(
$('<tr>').append(
$('<td>').text( key ),
$('<td>').text( value )
)
)
})
$('#hostedAuthWidget').after(
"Got login info: ",
$authTable
)
})
</script>