# RedbrickAuthenticator.ClientApi

All URIs are relative to _http://localhost:8082/{version}_

| Method                                      | HTTP request             | Description |
| ------------------------------------------- | ------------------------ | ----------- |
| [**getIpxToken**](ClientApi.md#getIpxToken) | **POST** /auth/token/ipx |
| [**getKbToken**](ClientApi.md#getKbToken)   | **POST** /auth/token/kb  |

<a name="getIpxToken"></a>

# **getIpxToken**

> ResponseMessage getIpxToken(opts)

API for issuing tokens to client users

### Example

```javascript
import {RedbrickAuthenticator} from "redbrick_authenticator";
let defaultClient = RedbrickAuthenticator.ApiClient.instance;

let apiInstance = new RedbrickAuthenticator.ClientApi();
let opts = {
  body: new RedbrickAuthenticator.GetIpxTokenRequest(), // GetIpxTokenRequest |
};
apiInstance.getIpxToken(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});
```

### Parameters

| Name     | Type                                            | Description | Notes      |
| -------- | ----------------------------------------------- | ----------- | ---------- |
| **body** | [**GetIpxTokenRequest**](GetIpxTokenRequest.md) |             | [optional] |

### Return type

[**ResponseMessage**](ResponseMessage.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="getKbToken"></a>

# **getKbToken**

> GetKbTokenResponse getKbToken(opts)

API for issuing tokens to client users

### Example

```javascript
import {RedbrickAuthenticator} from "redbrick_authenticator";
let defaultClient = RedbrickAuthenticator.ApiClient.instance;

let apiInstance = new RedbrickAuthenticator.ClientApi();
let opts = {
  body: new RedbrickAuthenticator.GetKbTokenRequest(), // GetKbTokenRequest |
};
apiInstance.getKbToken(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});
```

### Parameters

| Name     | Type                                          | Description | Notes      |
| -------- | --------------------------------------------- | ----------- | ---------- |
| **body** | [**GetKbTokenRequest**](GetKbTokenRequest.md) |             | [optional] |

### Return type

[**GetKbTokenResponse**](GetKbTokenResponse.md)

### Authorization

[BearerAuth](../README.md#BearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
