This library should support using The OAuth 2.0 Web Server Flow for authentication. https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_server_flow.htm&type=5