Extensions Class

The main configuration class for Flask-JWT-Router

class flask_jwt_router._config.BaseConfig[source]

Abstract Base Class for Extensions

class flask_jwt_router._config.Config[source]
Parameters
  • secret_key – User defined secret key

  • entity_key – The entity’s primary key (ie id or user_id etc.). Default is id

  • whitelist_routes – List of tuple pairs of verb & url path

  • api_name – the api name prefix e.g /api/v1

  • ignored_routes – Opt our routes from api name prefixing

  • entity_models – Multiple entities to be authenticated

  • expire_days – Expire time for the token in days

  • oauth_entity – If google_oauth options are declared then this will indicate the entity key in flight

Kwargs
param entity_models

Multiple entities to be authenticated

param google_oauth

Options if the type or auth is Google’s OAuth 2.0

init_config(app_config: Dict[str, Any], **kwargs) → None[source]
Parameters

app_config

Returns

exception flask_jwt_router._config.SecretKeyError[source]