LANSA Web API with Basic Authority - User / Password
Posted: Thu Aug 10, 2023 10:02 pm
Hi,
I have created a Web API with LANSA that runs with Basic Authority (User / Password - no tokens).
How can I receive the values for user and password that are delivered in the request fpor checking it with the entries in our authorization data base file?
This is the basic definition of the server routine:
Srvroutine Name(GetKatalog) Response(*HTTP #Context)
Define_Com Class(#Com_Home.GetKatalog) Name(#Operation)
* Instanzen von Request- und Response-Arrays definieren
Define_Com Class(#Com_Home.RequestArray) Name(#RequestArray)
Define_Com Class(#Com_Home.ResponseArray) Name(#ResponseArray)
* Zum Auslesen des empfangenen Requests
Define_Com Class(#XPRIM_RandomAccessJsonReader) Name(#Reader) Reference(*DEFERRED)
Define_Com Class(#XPRIM_ErrorInfo) Name(#ErrorObject) Reference(*DEFERRED)
Define_Com Class(#PRIM_BOLN) Name(#Found)
Can I retrieve user/password with some #Operation values or how do I do this?
Kind regards,
Jörg
I have created a Web API with LANSA that runs with Basic Authority (User / Password - no tokens).
How can I receive the values for user and password that are delivered in the request fpor checking it with the entries in our authorization data base file?
This is the basic definition of the server routine:
Srvroutine Name(GetKatalog) Response(*HTTP #Context)
Define_Com Class(#Com_Home.GetKatalog) Name(#Operation)
* Instanzen von Request- und Response-Arrays definieren
Define_Com Class(#Com_Home.RequestArray) Name(#RequestArray)
Define_Com Class(#Com_Home.ResponseArray) Name(#ResponseArray)
* Zum Auslesen des empfangenen Requests
Define_Com Class(#XPRIM_RandomAccessJsonReader) Name(#Reader) Reference(*DEFERRED)
Define_Com Class(#XPRIM_ErrorInfo) Name(#ErrorObject) Reference(*DEFERRED)
Define_Com Class(#PRIM_BOLN) Name(#Found)
Can I retrieve user/password with some #Operation values or how do I do this?
Kind regards,
Jörg