huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
149 stars 43 forks source link

Use SAML SSO token instead of credentials #100

Open mdusane opened 3 months ago

mdusane commented 3 months ago

Hello there, Is there any way to use/pass SAML SSO token instead of user credentials?

tom-j-irvine commented 3 months ago

There are some ways to authenticate without user/pass, but the bad news is you are constrained by the proprietary SAP RFC protocol, so don't expect it to be easy. Depending on your exact requirements/implementation, you'll just be providing different parameters in your connection string to make it work. Generally speaking, you'll find most of the documentation under RFC SNC (secure network communication).

Probably the best examples I have found are here: https://sap.github.io/PyRFC/authentication.html

This is actually for a python RFC wrapper, but it is wrapping the same RFC SDK as SapNwRfc. So, in theory, you would provide similar configuration and get the same results.