Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IAuthenticate - urgent help

IAuthenticate - urgent help

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomtutorialquestion
11 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    YaronNir
    wrote on last edited by
    #1

    i am using URLDownloadToCache method, also implemented my own class class CBindStatusCallbackImpl : public IBindStatusCallback for call back and bindings... i read in the MSDN that in order to support proxy handling i need to handle IAuthenticate and the method Authenticate...problem is i don't know how ? couldn't find any example code for that can any1 help me? i am desperate thanks in advanced

    Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

    G 1 Reply Last reply
    0
    • Y YaronNir

      i am using URLDownloadToCache method, also implemented my own class class CBindStatusCallbackImpl : public IBindStatusCallback for call back and bindings... i read in the MSDN that in order to support proxy handling i need to handle IAuthenticate and the method Authenticate...problem is i don't know how ? couldn't find any example code for that can any1 help me? i am desperate thanks in advanced

      Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      this is likely way more complex than you want - but its the only thing I can remember that Ive seen supposedly do it http://vbmhwb.sourceforge.net/[^] search for WBAuthenticate on the page 'g' ps.. Im hoping it shows you the general method, Im not suggesting you can use the actual code here

      Y 1 Reply Last reply
      0
      • G Garth J Lancaster

        this is likely way more complex than you want - but its the only thing I can remember that Ive seen supposedly do it http://vbmhwb.sourceforge.net/[^] search for WBAuthenticate on the page 'g' ps.. Im hoping it shows you the general method, Im not suggesting you can use the actual code here

        Y Offline
        Y Offline
        YaronNir
        wrote on last edited by
        #3

        thanks a lot for your answer... i couldn't find in the site you gave where to d/l the code that implements the WBAuthenticate...can u direct me or give me direct link please thanks again

        Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

        G 1 Reply Last reply
        0
        • Y YaronNir

          thanks a lot for your answer... i couldn't find in the site you gave where to d/l the code that implements the WBAuthenticate...can u direct me or give me direct link please thanks again

          Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          its a sourceforge site - try googling for vbMHWB ActiveX Control and see if you get a hit - I just checked the link and it works for me 'g'

          Y 1 Reply Last reply
          0
          • G Garth J Lancaster

            its a sourceforge site - try googling for vbMHWB ActiveX Control and see if you get a hit - I just checked the link and it works for me 'g'

            Y Offline
            Y Offline
            YaronNir
            wrote on last edited by
            #5

            ok now i know which link to press ;) thanks again

            Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

            G 1 Reply Last reply
            0
            • Y YaronNir

              ok now i know which link to press ;) thanks again

              Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

              G Offline
              G Offline
              Garth J Lancaster
              wrote on last edited by
              #6

              cool, now, download vbMHWB.zip, unpack it and look at vbWB.cpp, searching for WBAuthenticate 'g'

              Y 2 Replies Last reply
              0
              • G Garth J Lancaster

                cool, now, download vbMHWB.zip, unpack it and look at vbWB.cpp, searching for WBAuthenticate 'g'

                Y Offline
                Y Offline
                YaronNir
                wrote on last edited by
                #7

                your example helped me a lot and now it works 100% so thanks for that

                Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

                1 Reply Last reply
                0
                • G Garth J Lancaster

                  cool, now, download vbMHWB.zip, unpack it and look at vbWB.cpp, searching for WBAuthenticate 'g'

                  Y Offline
                  Y Offline
                  YaronNir
                  wrote on last edited by
                  #8

                  One more thing if i may... i was able to work with IAuthenticate implementation (the method 'authenticate' did the trick) problem is that the actual authentication occurs only once, and if the user and password are incorrect i don't reach the method 'authenticate' again. what am i missing wrong here? thanks again

                  Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

                  G 1 Reply Last reply
                  0
                  • Y YaronNir

                    One more thing if i may... i was able to work with IAuthenticate implementation (the method 'authenticate' did the trick) problem is that the actual authentication occurs only once, and if the user and password are incorrect i don't reach the method 'authenticate' again. what am i missing wrong here? thanks again

                    Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

                    G Offline
                    G Offline
                    Garth J Lancaster
                    wrote on last edited by
                    #9

                    I would have thought you'd have to resend the http request again - but Im no expert 'g'

                    Y 1 Reply Last reply
                    0
                    • G Garth J Lancaster

                      I would have thought you'd have to resend the http request again - but Im no expert 'g'

                      Y Offline
                      Y Offline
                      YaronNir
                      wrote on last edited by
                      #10

                      one would thought that when user name and password are incorrect either in the callback would return proxy_authenticate_error or authenticate will be called again ok i will dig more into it thanks again

                      Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

                      G 1 Reply Last reply
                      0
                      • Y YaronNir

                        one would thought that when user name and password are incorrect either in the callback would return proxy_authenticate_error or authenticate will be called again ok i will dig more into it thanks again

                        Interface basics click here : http://www.codeproject.com/com/COMBasics.asp don't forget to vote :)

                        G Offline
                        G Offline
                        Garth J Lancaster
                        wrote on last edited by
                        #11

                        Im familiar with a certificate error where you intercept the error, search through the local cert store for a matching certificate - but then you have to re-broadcast the original call, with the cert details filled in (hence why my suggestion) 'g'

                        modified on Tuesday, January 19, 2010 4:08 AM

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups