Using OAuth applications
How to install pre-packed OAuth applications.
Appmixer comes with a set of prepared components (applications). Some of them use OAuth 1 (Twitter) authentication mechanism and some of them (Slack, Google) use OAuth 2 authentication mechanism.
If you try to use the Slack component right after fresh Appmixer installation you will get an error Missing client ID
.
![](https://docs.appmixer.com/~gitbook/image?url=https%3A%2F%2F4257661311-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkpyTqJi517UiwFJJRydZ%252Fuploads%252Fgit-blob-9a3505a2b14db7b6e07e02212a85d5512098338d%252FAppmixer%2520%2829%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7e096146&sv=1)
In the case of the OAuth 1 application, the error will be Missing consumer key
. As described here the OAuth applications need these secrets. The reason we do not provide these secrets with Appmixer is simple. Part of the OAuth application registered in the third party service is the redirect URL which points to your server URL where the Appmixer backend API is running.
Therefore you need to create these OAuth applications on your own. At the end of the process, you will always get a client ID and client Secret (OAuth 2).
Before installing an OAuth application, please visit the APP registration section. It contains specific settings for each application.
The OAuth variables can be set through the Backoffice.
GRIDD_URL
There is another ENV variable that is used for OAuth redirects. It is called GRIDD_URL.
By default, the GRIDD_URL will be set to http://localhost:2200. This is fine for local development. For most of the services, you can register http://localhost:2200 as a callback URL. In production, this has to point to your Appmixer's public API URL.
If you run the following command:
It will set both the APPMIXER_API_URL and the GRIDD_URL to the https://247bb870a6f4.ngrok.io.
Another way would be replacing the variables directly in docker-compose.yml file.
Or you can set just the GRIDD_URL like this:
If APPMIXER_API_URL is not set, Appmixer will use the value from GRIDD_URL.
Appmixer engine will print out values of these variables when starting so you can check they are set correctly:
![](https://docs.appmixer.com/~gitbook/image?url=https%3A%2F%2F4257661311-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkpyTqJi517UiwFJJRydZ%252Fuploads%252Fgit-blob-a12f2ed9364b999976dda90ce6e010390289b3ce%252F1__zsh.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b441559d&sv=1)
Last updated