The remote connector enables you to use a LoopBack application as a data source via REST.
You can use the remote connector with a LoopBack application, a Node application, or a browser-based application that uses [LoopBack in the client](LoopBack-in-the-client.html).
The connector uses [Strong Remoting](Strong-Remoting.html).
The connector will generate models on the myRemoteDataSource datasource object based on the models/methods exposed from the remote service. Those models will have methods attached that are
from the model's remote methods. So if the model `foo` exposes a remote method called `bar`,
<td>Hostname of <span>LoopBack</span> application <span>providing remote data source.</span></td>
</tr>
<tr>
<td>port</td>
<td>Number</td>
<td>Port number of <span>LoopBack</span> application providing remote <span>data source</span>.</td>
</tr>
<tr>
<td>root</td>
<td>String</td>
<td>Path to API root of <span>LoopBack application providing remote <span>data source</span>.</span></td>
</tr>
<tr>
<td>url</td>
<td>String</td>
<td>Full URL of <span>LoopBack application providing remote connector.
Use instead of host, port, and root properties.</span>
</td>
</tr>
</tbody>
</table>
## Configuring authentication
The remote connector does not support JSON-based configuration of the authentication credentials (see [issue #3](https://github.com/strongloop/loopback-connector-remote/issues/3)).
You can use the following code as a workaround. It assumes that your data source is called "remote" and the AccessToken id is provided in the variable "token".
```javascript
app.dataSources.remote.connector.remotes.auth = {
bearer: new Buffer(token).toString('base64'),
sendImmediately: true
};
```
## Using with MongoDB connector
When using the MongoDB connector on the server and a remote connector on the client,