added client key and secret obtaining from server at runtime