Jump to content

AutoAuth vb.net or C# example?


cmsplushosting

Recommended Posts

Does anyone have an AutoAuth vb.net or C#.net example?

 

I am having problems integrating...

 

Im using:

 

Dim ts As TimeSpan = (DateTime.UtcNow - New DateTime(1970, 1, 1, 0, 0, 0))
       Dim unixTime As Double = ts.TotalSeconds

       Dim Unix_TS As String = getUnixTimeStamp(DateTime.Now)
       'Dim hash As String = CalculateSHA1(, Encoding.ASCII)
       Dim protectString As String = My.Settings.strEmailAddress + Unix_TS + My.Settings.strAutoAuthkey


       Dim hash As String = FormsAuthentication.HashPasswordForStoringInConfigFile(protectString, "sha1").ToLower()


       Debug.WriteLine("email: " & My.Settings.strEmailAddress)
       Debug.WriteLine("time serial: " & Unix_TS)
       Debug.WriteLine("hash: " & hash)

 

It brings me to the URL:

dologin.php?email=adminemail@mysite.com&timestamp=1312012433&hash=a15ae72fe132e2bd118d81a09f599578&goto=/admin/supporttickets.php?action=viewticket&id=68

 

But says Link Expired.

 

Can someone help, I've spent a good 5+ hrs on this one ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated