Open julio-prezero opened 1 year ago
Hi, @julio-prezero.
Unfortunately, setting a client certificate is not possible as of now. It's definitely something on the list of possible improvements for version 2.0.
Hi Bruno. Thank you for your prompt response. Enabling certificates would be great. Is it possible to add runtime entries to the http request's header section? Like a cookie with a Session ID so that the SAP B1 service could be authenticated?
Regards!
From: Bruno Mulinari @.> Sent: Monday, September 25, 2023 9:29 AM To: bgmulinari/B1SLayer @.> Cc: Julio Vasquez @.>; Mention @.> Subject: Re: [bgmulinari/B1SLayer] Certificates (Issue #52)
Hi, @julio-prezerohttps://link.edgepilot.com/s/3d647126/mHxadNo3pUq0-4zGIx75GQ?u=https://github.com/julio-prezero.
Unfortunately, setting a client certificate is not possible as of now. It's definitely something on the list of possible improvements for version 2.0.
- Reply to this email directly, view it on GitHubhttps://link.edgepilot.com/s/e9f8aed9/GyUTSb3EVES9BvQfZDr0EA?u=https://github.com/bgmulinari/B1SLayer/issues/52%23issuecomment-1734090265, or unsubscribehttps://link.edgepilot.com/s/8b98fc1a/fQWTepbTX0CDtpO627xflQ?u=https://github.com/notifications/unsubscribe-auth/ANSWDH6XD2XIJT5UXAMRDTTX4GWNBANCNFSM6AAAAAA5GLFN4Y. You are receiving this because you were mentioned.Message ID: @.**@.>>
@julio-prezero, Service Layer's authentication is already taken care of automatically by B1SLayer. The login is performed whenever necessary and the required session cookies are always sent in your requests. If you wish to add additional entries to the request headers, you can use the WithHeader
extension method.
The SLRequest
class has a number of extension methods that can help you configure your request.
I recommend checking the README and my blog post for more info on B1SLayer's usage.
How can I set a local certificate file to the requests?