Authorization through the app

Hello!Please tell me how to do authorization in the application via the app and not through browser!Thank you!