The type of the security scheme. (api_key, basic, bearer, oauth2, openid_connect)
string
N
key_in
api_key The location of the API key. Valid values are “query”, “header” or “cookie”. (query, header, cookie)
string
Y
key_name
api_key The name of the header, query or cookie parameter to be used..
string
Y
bearer_format
bearer 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.
string
Y
flows
oauth2 An object containing configuration information for the flow types supported.
OAuthFlows
Y
openid_connect_url
OpenId Connect URL to discover OAuth2 configuration values.
string
Y
checker
Specify a function to check the original authentication information and convert it to the return type of this function. This function must return Option<T> or poem::Result<T>, with None meaning a General Authorization error and an Err reflecting the error supplied.