Allowing logins from API ?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Allowing logins from API ?

Post by Jaymer »

confused about something

if i'm doing a third party front end to my aware database,
then how am i supposed to get someone logged in?

if a REST service requests an auth for user "Jim" with password "xyzzy",
how am i supposed to compare that to the RegularUser.Password field (which is encoded) to validate the login?

Would it be possible to have a Password2 field, also of type Password.
Then assign Password2 = restAuth.password
THEN compare Password = Password2 ?

Seems like it would also be nice to have a VALIDATE_PASSWORD() function ?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
BobK
Posts: 544
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Re: Allowing logins from API ?

Post by BobK »

Jaymer wrote: Wed Dec 01, 2021 5:11 pm Seems like it would also be nice to have a VALIDATE_PASSWORD() function ?
No such function

I use the undocumented PWD_ENCRYPT(<plain text password>) function to encrypt the incoming password and then compare that with the RegularUser Password field.

Use the Context Assistant for details on the function.
Bob
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Allowing logins from API ?

Post by Jaymer »

Yes, thx, works perfectly
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply