Bearer Tokens

The most common OAuth 2 token type. It provides very little in terms of security and relies heavily upon the ability of the client to keep the token secret.

Bearer tokens are the default setting with all configured endpoints. Generally you will not need to ever construct a token yourself as the provided servers will do so for you.

class oauthlib.oauth2.BearerToken(request_validator=None, token_generator=None, expires_in=None, refresh_token_generator=None)[source]
create_token(request, refresh_token=False, save_token=True)[source]

Create a BearerToken, by default without refresh token.