Ken Mann
Ken Mann

Reputation: 3

Sustainsys.Saml2 OWIN access_denied and logging

When /Saml2/Acs from the middleware redirects to ExternalLoginCallback I'm getting an error=access_denied as part of the url. From searches I've done, I need to enable logging and I'll be able to find the reason. The problem is I cannot figure out how to enable logging to a file so that I'm able to read it.

The Troubleshooting page says to connect an ILoggerAdapater to my SPOptions.Logger, but that if I'm using OWIN middleware it is done automatically and I can see the output in the OWIN/Katana logging - Is this log in a file somewhere/can I make it show up in a file so that I'm able to see it?

Upvotes: 0

Views: 971

Answers (1)

Anders Abel
Anders Abel

Reputation: 69280

The Owin Middleware by defaults wires up a ILoggerAdapter that writes to the Owin/Katana logging system. To get that output to a file, you need to configure Katana logging. There's an SO post describing what to do: How do I use Owin Katana Logger

Another option is to replace the existing ILoggerAdapter with your own write-to-file logic.

Upvotes: 0

Related Questions