Configuration

Twitcher has a configuration file development.ini for local development. Copy and edit this configuration to adapt to your settings.

Service

Edit the configuration to change the service parameters.

The URL of the Twitcher service endpoint:

twitcher.url = http://localhost:8000

Basic Authentication

Twitcher uses basic authentication for client application registration. Edit username in password in the configuration:

twitcher.username = demo
twitcher.password = demo

OAuth2 Token Generator

Twitcher uses OAuth2 tokens to control access to the service registration and the OWS service access. You can use three types of tokens.

Random Token

Tokens with UUID strings stored in the local twitcher database.

Edit the configuration file:

twitcher.token.type = random_token # default

Signed Token

JWT tokens signed with a certificate. You can generate a self-signed certificate for testing with the Makefile:

$ make gencert

Edit the configuration file:

twitcher.token.type = signed_token
twitcher.token.keyfile = key.pem # private key
twitcher.token.certfile = pubkey.pem # public key

Custom Token

JWT tokens using a shared secret. You can generate a UUID secret with:

$ make gensecret

Edit the configuration file:

twitcher.token.type = custom_token
twitcher.token.secret = secret