1. Maurice Losier
  2. PowerScript Migrator
  3. Friday, 14 October 2022 17:48 PM UTC

I'm looking to start migrating our client server application to an n-tier type applicaiton.

I have been playing with snapdevelop to try to stand up web api in C#.

I don't remember where most likely a one of the elevate; someone mentioning a C# webApi solution for LDAP authentication.

I'm thinking of the front end PB app querying LDAP via a WebApi call using httpclient, am I out to lunch here is it this feasable. 

Step 1

PBApp httpclient to C#WebAPI [/LDAPLoginCheck]-> calls LDAP and returns results to PBApp as JSON. 

Setp 2

if password check to ldap passes and user is in AD group granting access to application then application will call a [/DetailPermissionscheck] webAPI to get a dw that contains our security keywords from database retrieved by userID. 

Then the application launches with permissions retrieved. 

and now for the question does anyone have code example for webapi C# calls to LDAP and Powerbuilder setup to call it. 

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 14 October 2022 18:13 PM UTC
  2. PowerScript Migrator
  3. # 1

Of course you can call Web APIs from PowerBuilder, but if you are coding n-tier app you may want to consider calling the Web APIs from the server-side in C#. 

Also, another suggestion is that you search Microsoft resources for C# code examples since Active Directory is a Microsoft product.  Even if you want to implement in PowerScript, you could basically translate the C# code example to PowerScript.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.