| Package | com.adobe.rtc.authentication |
| Class | public class AdobeHSAuthenticator |
| Inheritance | AdobeHSAuthenticator AbstractAuthenticator flash.events.EventDispatcher |
authenticator property,
the IConnectSession manages the rest.
AdobeHSAuthenticator takes one of the following sets of input parameters depending on
how the user is logging in. There are several possible scenarios:
userName and password. Developers may find it expedient
to hard code their Adobe ID during development and testing so that their application
will communicate directly with the service. In this case, pass the Adobe ID username, password, and
the room's URL. It should be obvious that authentication details should never be hard coded anywhere,
including deployed SWFs. See Example 1 below for a simple development-only use case.
userName. Users may only want to enter as a guest or the developer
may want to limit room members to a guest role. In this case, only username
is required, and that name is used only as a display name. For more information on managing guest users,
see the autoPromote() and guestsHaveToKnock() in the RoomManager class.
authenticationKey. In most production scenarios, developers will want automatically authenticate
users on their organization's existing systems. Production LCCS applications are usually designed to
rely on external authentication mechanisms so that their client users do not have to
have an Adobe ID, so the developer can leverage existing infrastructure, and so they can take advantage
of a host of other benefits as described in the LCCS Developer Guide. See Example 2 below.
Note: It's possible to develop offline without a connection to the LCCS service. Simply changertc:AdobeHSAuthenticatortortc:LocalAuthenticatorand use any arbitrary username. Then start the SDK's LocalConnectionServer.air and your applications will automatically detect the local server. For details, refer to the LCCS Developer Guide or the LocalConnectionServer demo in the SDK's examples directory.Example 1: Simple, development-only authentication
<rtc:AdobeHSAuthenticator // Deployed applications DO NOT hard code username and password here. userName="AdobeIDusername@example.com" password="AdobeIDpassword" id="auth"/> <session:ConnectSessionContainer roomURL="http://connect.acrobat.com/exampleAccount/exampleRoom" authenticator="{auth}"> <pods:WebCamera width="100%" height="100%"/> </session:ConnectSessionContainer>Note: For more information about external authentication, refer to the LCCS Developer Guide and the scripts in the SDK's "extras/scripts" directory. Example 2 assumes thatauthenticationKeyandroomURLare being passed to the SWF viaflashvars.Example 2: Production authentication method using external authentication
<mx:Script> <![CDATA[ [Bindable] private var roomURL:String; [Bindable] // Use external authentication to create a property to authenticationKey. private var authToken:String; private function init():void { roomURL = Application.application.parameters["roomURL"]; // authToken is created by the developer's server from the developer's // shared secret as well as the users's authentication information. authToken = Application.application.parameters["authToken"]; cSession.login(); } ]]> </mx:Script> // Pass the authToken to authenticationKey. <rtc:AdobeHSAuthenticator authenticationKey="{authToken}" id="auth"/>See also
com.adobe.rtc.session.IConnectSession
com.adobe.rtc.messaging.UserRoles
com.adobe.rtc.sharedManagers.descriptors.UserDescriptor
com.adobe.rtc.sharedManagers.RoomManager.autoPromote
com.adobe.rtc.sharedManagers.RoomManager.guestsHaveToKnock
| Property | Defined by | ||
|---|---|---|---|
![]() | authenticationKey : String
For applications that leverage LCCS's external authentication capabilities,
authenticationKey is used to receive a unique, signed string created from
the developer's shared secret and the user's username, password, and role. | AbstractAuthenticator | |
![]() | authenticationURL : String
Allows a developer to specify the URL of a LCCS-compatible authentication service;
it is not needed for many applications.
| AbstractAuthenticator | |
![]() | isGuest : BooleanisGuest returns whether or not the supplied parameters
require that the user be admitted as a guest only. | AbstractAuthenticator | |
![]() | password : Stringpassword is only required when Adobe IDs
are used; therefore, it is likely that only developers would need this parameter except
during development. | AbstractAuthenticator | |
| protocol : String [write-only]
[Deprecated 4/15/10] Set the protocol, values are RTMPS and RTMFP.
| AdobeHSAuthenticator | ||
| requireRTMFP : Boolean [write-only]
Determines whether the user must connect via RTMFP.
| AdobeHSAuthenticator | ||
![]() | userName : String
When
authenticationKey is not used,
userName is required upon room entry; when a someone enters as a guest, the name
becomes the user's display name. | AbstractAuthenticator | |
| Method | Defined by | ||
|---|---|---|---|
| AdobeHSAuthenticator | |||
|
getAuthenticationRequestParameters():String
| AdobeHSAuthenticator | ||
| protocol | property |
protocol:String [write-only][Deprecated 4/15/10] Set the protocol, values are RTMPS and RTMFP. This property is no longer required - all applications built with the player 10 (and above) swcs will automatically attempt to connect with RTMFP, and, failing that, use RTMPS (unless requireRTMFP is set to true).
Implementation public function set protocol(value:String):void
| requireRTMFP | property |
requireRTMFP:Boolean [write-only]Determines whether the user must connect via RTMFP. Setting this to true means that any client who cannot connect via RTMFP will not fall back to RTMPs, and instead throw a SessionError (or dispatch a SessionEvent, if a listener is waiting).
Implementation public function set requireRTMFP(value:Boolean):void
| AdobeHSAuthenticator | () | constructor |
public function AdobeHSAuthenticator()
| getAuthenticationRequestParameters | () | method |
public override function getAuthenticationRequestParameters():String
Returns
String |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/authentication/AdobeHSAuthenticator.html