This example will connect a facade to an adapter, perform authentication, call a protected method, and disconnect.

To try the un-authorized example, perform steps 1, 3 and 4 without performing step 2.

Console messages will be output to the text box bellow. To see trace information, open the browser console.

Step 1: connect facade
Step 2: call authentication api
Step 3: call protected method
Step 4: disconnect