Custom login for a third-party application

Not sure if I understand you correctly but I guess this FAQ will answer your question: