watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Bitbucket OAuth not implemented yet so warn user about HTTP Auth [lib/watson/bitbucket.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/bitbucket.rb line # : 52 tag : todo md5 : 67d1a8fa1d841d30d4a3d7ff1ec86829

        # [todo] - Bitbucket OAuth not implemented yet so warn user about HTTP Auth
        # Bitbucket doesn't have nonOAuth flow that GitHub does :(
        # Even if I use OAuth lib, still need to validate from webview which is lame
        Printer.print_status "!", RED 
        print BOLD + "Bitbucket OAuth not implemented yet.\n" + RESET;
        print "      Basic HTTP Auth in use, will request PW entry every time.\n\n"
                # [todo] - Don't just check for blank password but invalid as well
        # Poor mans username/password grabbing
        print BOLD + "Username: " + RESET
        _username = $stdin.gets.chomp
        if _username.empty?
            Printer.print_status "x", RED
            print BOLD + "Input blank. Please enter your username!\n\n" + RESET
            return false
        end

nhmood avatar Nov 21 '13 16:11 nhmood