r/dotnet • u/KalinaChan • Jul 29 '24
Saml making me crazy
Hey guys,
I'm currently implementing an Auth service with sustainsys saml2 and asp.net webapi.
Never ever have I had such cluster fk of configuration, error messages and magic.
Currently I'm stuck with this error message:
System.configurationsErrorException: Missing binding configuration on IDP Https://sts.windows.net/TenantId
Configure data protection API
Add forwarded headers
Load certificates and keys
Parse Len certificate + key to X5909Certificate2
Setup Https for kestrel
Load config from appsettings.json
Get metadata from URL and parse it (set entityid, return URL, idp certificates, URL SSO and slo)
Configure saml2 (add services to DI)
I'm happy with any help and I am open to share code if necessary.
Goal is an Auth service that authenticates the user with aad and returns roles, user Info etc. As jwts.
Regards and thanks in advance.