Scala Sign in with twitter and twitter4j



I’m trying to implement “Sign in with twitter” workflow in scala but i just can’t figure how.
I’ve managed to do PIN-Based authentication but this isn’t suitable for my application.
Here is my code :

private def signIn() {
        val cb = new ConfigurationBuilder

        val tf = new TwitterFactory(
        val twit = tf.getInstance()
        val reqToken = twit.getOAuthRequestToken
        val accTokenUrl = reqToken.getAuthorizationURL //reqToken.getAuthenticationURL


But when i go to the URL it gives me a PIN…

Any advice?