Configuration Options¶
The following options of the Flask configuration can be used to control Flask-Ipernity’s behavior:
- IPERNITY_APP_KEY¶
The Ipernity Application key.
Default:
None
- IPERNITY_APP_SECRET¶
The Ipernity Application secret.
Default:
None
- IPERNITY_CACHE_REQUESTS¶
Boolean indicating if API requests are cached in the session. As this can require lots of session memory, you should use an enhanced session handler like Flask-Session if setting this to
True.Default:
False
- IPERNITY_CACHE_MAX_AGE¶
Maximum age for cached results to be used.
Default: 300
- IPERNITY_CALLBACK¶
Tells Flask-Ipernity if it should supply a view for the application’s callback URL.
Default:
True
- IPERNITY_CALLBACK_URL_PREFIX¶
URL prefix for the callback blueprint.
Default:
"/ipernity"
- IPERNITY_LOGIN¶
Tells Flask-Ipernity if it should act as an identity provider for Flask-Login.
Default:
False
- IPERNITY_LOGIN_URL_PREFIX¶
URL prefix for the login blueprint.
Default:
"/ipernity"
- IPERNITY_PERMISSIONS¶
Default permissions that are requested by
authorize()if no permissions are specified. Should be adictwith the keys:IPERNITY_PERMISSIONS = { 'doc' 'read', 'blog': 'write', 'post': 'delete', 'network': 'write', 'profile': 'read', }
Missing keys indicate that no permissions are requested for this data. An empty
dictmeans to login, but not request additional permissions.Default:
{}See also
- IPERNITY_SESSION_PREFIX¶
Prefix for the Flask-Ipernity session variables.
Default:
"ipernity_"