- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
RSA SecurID .NET API for web services
Hi,
We are developing a web portal and need to integrate it with RSA SecurID for authentication. For this our development team needs an API for .NET, i have searched the RSA Knowledge Base and found only C and JAVA API's.
Can anyone share the API for .NET (C#).
Thank you.
- Tags:
- .net
- Agent
- Agents
- AM
- asp
- asp .net
- aspx
- Auth Agent
- Auth Manager
- Authentication Agent
- Authentication Manager
- c api
- Community Thread
- Discussion
- Forum Thread
- RSA SecurID
- RSA SecurID Access
- SecurID
- web-services
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Ali,
You can just use the C API.
Simply by 2 steps,
1. Import the C Dll
2. Declare the method stubs
Here's a quick example:
http://stackoverflow.com/questions/5664737/calling-c-dll-from-c-sharp
Regards,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Ali,
Please talk to Support team about this. You might be able to use AMIS to make REST calls from your .NET app.
Regards,
Subbu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Ali,
You can just use the C API.
Simply by 2 steps,
1. Import the C Dll
2. Declare the method stubs
Here's a quick example:
http://stackoverflow.com/questions/5664737/calling-c-dll-from-c-sharp
Regards,
Oliver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Oliver,
@oliver
I am browsing through RSA AuthSDK_C_v8.6.0_75.06_03_16_13_30_14.
Which dll exactly we need to import into C# application to declare method Sub?
Regards,
Nay Linn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Here's a quick example for your reference. (developed by another RSA expert)
[Visual Basic]
Imports System
Imports System.Text
Imports System.Diagnostics
Imports Microsoft.VisualBasic
Imports System.Runtime.InteropServices
Module Module1
REM Holds pin limits and related values
<StructLayout(LayoutKind.Sequential)> _
Structure SD_PIN_STRUCT
Public Min As Byte
Public Max As Byte
Public Selectable As Byte
Public Alphanumeric As Byte
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=9)> _
Public System As String
End Structure
REM initialization and shutdown calls
Declare Ansi Function AceInitialize _
Lib "aceclnt" Alias "AceInitialize" () As Integer
REM New Synchronous and thread-safe calls
Declare Ansi Function SD_Init _
Lib "aceclnt" Alias "SD_Init" (ByRef SdiHandle As Integer) As Integer
Declare Ansi Function SD_Lock _
' note the .DLL suffix is assumed by VB
Lib "aceclnt" Alias "SD_Lock" (ByVal SdiHandle As Integer, _
ByVal userID As String) As Integer
Declare Ansi Function SD_Check _
' the suffix is allowed, VB knows what is intended
Lib "aceclnt.dll" Alias "SD_Check" (ByVal SdiHandle As Integer, _
ByVal passcode As String, _
ByVal userID As String) As Integer
Declare Ansi Function SD_Pin _
Lib "aceclnt.dll" Alias "SD_Pin" (ByVal SdiHandle As Integer, _
ByVal pin As String) As Integer
Declare Ansi Function SD_Close _
Lib "aceclnt.dll" Alias "SD_Close" (ByVal SdiHandle As Integer) As Integer
Const ACM_NEW_PIN_REQUIRED = 5
Sub Main()
Dim SdiHandle As Integer = 0
Dim userid As String
Dim passcode As String
Dim res As Integer
Dim val As SD_PIN_STRUCT
val = New SD_PIN_STRUCT
val.Min = 0
val.Max = 0
val.Alphanumeric = 0
val.Selectable = 0
Dim buffer As StringBuilder
buffer = New StringBuilder(9)
val.System = buffer.ToString()
userid = "jdoe"
passcode = "1234"
AceInitialize()
res = SD_Init(SdiHandle)
res = SD_Lock(SdiHandle, userid)
res = SD_Check(SdiHandle, passcode, userid)
If (res = ACM_NEW_PIN_REQUIRED) Then
res = AceGetPinParams(SdiHandle, val)
System.Console.WriteLine("Min size = {0}", val.Min)
System.Console.WriteLine("Max size = {0}", val.Max)
System.Console.WriteLine("Selectable = {0}", val.Selectable)
System.Console.WriteLine("Alphanumeric = {0}", val.Alphanumeric)
System.Console.WriteLine("System generated = {0}", val.System)
End If
SD_Close(SdiHandle)
End Sub
End Module
