Cozy account types doctype¶
io.cozy.account_types¶
The io.cozy.account_types can be used for two main purposes:
-
It can contain secret configuration parameters needed by the webapp/konnectors (API Tokens, API URLS, …). Every time a konnector job is executed, the stack can give some of these secret parameters to the konnector
-
It can contain an OAuth configuration for a service. It simplifies the development of konnectors for OAuth providers, and avoids race conditions when the same account is used by several konnectors.
-
grant_mode{string}: Grant mode, part of the OAuth standard client_id{string}: Client ID, part of the OAuth standardclient_secret{string}: Client secret, part of the OAuth standardauth_endpoint{string}: The endpoint of the external service authenticationtoken_endpoint{bool}: The endpoint of the external service token exchangetoken_mode{string}: Mode of token auth retreiving(form/basic/get)redirect_uri{[]string}: List of redirect URIs given by the client. Part of the OAuth standardextras{map[string]string}: Extra auth query parametersslug{string}: Slug of the webapp/konnectorsecret{object}: JSON object given as an environment variable to the konnector