Skip to main content
Version: Next ๐Ÿšง

[I] BearerAuth

Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. The name โ€œBearer authenticationโ€ can be understood as โ€œgive access to the bearer of this token.โ€ The bearer token is a cryptic string, usually generated by the server in response to a login request. The client must send this token in the Authorization header when making requests to protected resources:

  Authorization: Bearer <token>

Extendsโ€‹

Propertiesโ€‹

PropertyModifierTypeDescriptionInherited from
description?publicstringOptional description.HttpAuthBase.description
idpublicstringId of the authentication scheme.HttpAuthBase.id
modelreadonlyModelModel that defined the authenticationHttpAuthBase.model
schemepublic"bearer"--
typepublic"http"--