Four your particular use case i would recommend setting up a SAML Single Sign-On Integration by setting up the SFDC as an Identity Provider.
The complete guideline on how to set up the SSO connection between SFDC and your custom application can be found under this documentation.
Thank you for your post and I hope this helped.
Best Regards, Remus