---
url: /api/specs/openspec/types/openspec3/interface-os-3-security-http.md
description: api documentation of OS3SecurityHTTP from @tsed/openspec
---

## Usage

```typescript
import { OS3SecurityHTTP } from "@tsed/openspec";
```

> See [/packages/specs/openspec/src/openspec3/OS3Security.ts](https://github.com/tsedio/tsed/blob/v8.38.4/packages/specs/openspec/src/openspec3/OS3Security.ts#L0-L0).

## Overview

```ts
interface OS3SecurityHTTP extends OS3SecurityBase {
    type: "http";
    scheme: string;
    bearerFormat?: string;
}
```

## type

```ts
type: "http";
```

The type of the security scheme

## scheme

```ts
scheme: string;
```

The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC7235](https://tools.ietf.org/html/rfc7235#section-5.1).

## bearerFormat

```ts
bearerFormat?: string;
```

A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.
