Administration¶
Site configuration¶
- Define an url segment challenge for the bexio authentication in the site
configuration for the property
bexio.authUrlSegmentChallenge
. For security reasons prefer something cryptic likewdoufkyrkLoqaarxxvmdxyyj
. - Set the properties
bexio.clientId
andbexio.clientSecret
(see Admin - Bexio) - Set the property
bexio.scopes
(see Bexio API scopes)
Example bexio properties in site configuration¶
bexio:
authUrlSegmentChallenge: muhh
clientId: 11111111-1111-1111-11111111111111111
clientSecret: aaaaaaaaaaaaaaaaaaaa-aaaaa-aaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
scopes: ['openid', 'profile', 'contact_edit', 'offline_access', 'kb_invoice_edit', 'bank_payment_edit']
Bexio¶
Create an app at developer.bexio.com with the following properties:
- Allowed redirect URL:
[https://domain.ch]/bexio-auth-[url segment challenge]
Hint
Replace
[url segment challenge]
with the value previously assigned to the site configuration propertybexio.authUrlSegmentChallenge
.- Allowed redirect URL:
Assign the “Client ID” and “Client Secret” to the corresponding properties
bexio.clientId
andbexio.clientSecret
from the site configuration.