The service will then be available at <DOCKER_HOST>:1234, which on your localmachine should be localhost:1234 and on a server with 10.10.10.10 as IPaddress the service should run on 10.10.10.10:1234 inside the network.

Environment Variables

The container MUST have the right credentials to work.So do not forget to put the right credentials to env variables first!It follows an overview of each environment variable of the container.

ENCRYPTION_SECRET

The ENCRYPTION_SECRET allows to pass the refresh_token to the client withoutcompromising on security.

REMEMBER: To decrypt the refresh_token inside your application before usage!

ENCRYPTION_DISABLED

The encryption and decryption of the refresh_token can hinder development andlead to hard to find bugs inside the system.

To iterate quicker it might be reasonable to start with encryption disabled.

CALLBACK_URL

How to use in iOS

Once the service is running, pass the public URI to the token swap method.If you run it with default settings on your local machine this should behttp://localhost:1234/swap.It follows the token swap method in the iOS SDK: