making linkedin api connection secure