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:
Login to Kaltura
  1. <script src="http//cdnapi.kaltura.com/p/{partnerId}/sp/{partnerId}00/embedIframeJs/uiconf_id/{uiconf_id}/partner_id/{partnerId}"></script>
  2. <script src="http://player.kaltura.com/kWidget/kWidget.auth.js"></script>
  3. <div id="hostedAuthWidget"></div>
  4. <script>
  5. kWidget.auth.getWidget( "hostedAuthWidget", function( userObject ){
  6. $authTable = $('<table>').css( 'width', '350px' );
  7. $.each( userObject, function( key, value){
  8. $authTable.append(
  9. $('<tr>').append(
  10. $('<td>').text( key ),
  11. $('<td>').text( value )
  12. )
  13. )
  14. })
  15. $('#hostedAuthWidget').after(
  16. "Got login info: ",
  17. $authTable
  18. )
  19. })
  20. </script>