This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- Re: Information on How to Authenticate a User
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2002
02:13 PM
Information on How to Authenticate a User
Can someone please let me know where I can find information on how to set up my ASP pages and other technical information on how the authentication works with the Update Service? I understand how to set up the Service to authenticate a user, but I cannot find any information on what information will be passed to my asp page. Thanks in advance.
- Domenick Lacertosa
dom@atlanticshore.com
- Domenick Lacertosa
dom@atlanticshore.com
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2002
12:17 PM
Open the SDK help, double-click the following Index entry:
Authenticate a customer
and then double-click the following topic in the Topics Found dialog box:
Process an authentication query
Authenticate a customer
and then double-click the following topic in the Topics Found dialog box:
Process an authentication query
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2002
12:18 PM
The following example is from our help docs under the topic: Process an authentication query
Does this give you what you need?
---------
The following ASP script example receives the values UserName and Password, checks them against an SQL database, and responds to the Update Service's query accordingly.
<%
Dim adoRS 'ADODB.Recordset
Dim objConn 'Connection
Dim sql 'SQL Query
Set objConn = Server.CreateObject("ADODB.Connection")
sql = "select UserName, Password , StartDate, ExpiryDate from UserDatabase db where db.UserName='" & Request("UserName") & "' AND db.Password = '" & Request("Password") & "' AND GETDATE() between db.StartDate and db.ExpiryDate"
' Set up the connection
objConn.Open "USERDB", "dbuserid", "dbpassword"
Set objRS=objConn.Execute(sql)
If objRS.EOF Then
Response.Write "FAILED"
' The following text is written to the Update Service user interface
Response.Write "This can happen for any of the following reasons:" & vbCRLF
Response.Write "- Incorrect username" & vbCRLF
Response.Write "- Incorrect password" & vbCRLF
Response.Write "- Your subscription expired" & vbCRLF
Else
Response.Write "OK"
End If
%>
Does this give you what you need?
---------
The following ASP script example receives the values UserName and Password, checks them against an SQL database, and responds to the Update Service's query accordingly.
<%
Dim adoRS 'ADODB.Recordset
Dim objConn 'Connection
Dim sql 'SQL Query
Set objConn = Server.CreateObject("ADODB.Connection")
sql = "select UserName, Password , StartDate, ExpiryDate from UserDatabase db where db.UserName='" & Request("UserName") & "' AND db.Password = '" & Request("Password") & "' AND GETDATE() between db.StartDate and db.ExpiryDate"
' Set up the connection
objConn.Open "USERDB", "dbuserid", "dbpassword"
Set objRS=objConn.Execute(sql)
If objRS.EOF Then
Response.Write "FAILED"
' The following text is written to the Update Service user interface
Response.Write "This can happen for any of the following reasons:" & vbCRLF
Response.Write "- Incorrect username" & vbCRLF
Response.Write "- Incorrect password" & vbCRLF
Response.Write "- Your subscription expired" & vbCRLF
Else
Response.Write "OK"
End If
%>