obtaining clientid and secret from environment variables