The configuration of Pacifica Authentication is done on the command line using arguments passed to services that incorporate the library.
These are common command line switches when Pacifica services include the authentication library.
Default is sessions
and contains the user sessions managed by the
core service.
Default is sqlite:///database.sqlite3
and is the SQLAlchemy engine
connection url
Python Social Auth
backends
Python module name. The module name is relative to social_core.backends
.
Python Social Auth class name from the module in the --social-module
name.
Python Social Auth settings are passed as to CherryPy configrations. Examples are the following:
pacifica-service \
--social-setting=github_key=<GitHub OAuth Key> \
--social-setting=github_secret=<GitHub OAuth Secret>
This is optional as some Pacifica services don't serve applications to users. This can serve both ReactJS or Swagger-UI as example applications.