Authentication with identity server


I am new to nativescript. Please go gently. I am trying to use an inhouse identity server to authenticate a user from my nativescript app. All i have is the server api address. Is there any plugin or sample project i can refer to, to learn how to do this?