saml icon indicating copy to clipboard operation
saml copied to clipboard

Fix logger and service providers fields initialization

Open guyp-descope opened this issue 2 years ago • 1 comments

The logger and serviceProviders fields of samlidp.Server object are not exported and therefor cannot be initialized when not using the default func New(opts Options) (*Server, error) , The fix include two things:

  1. Added InitializeLogger(..) function so logger can be initialized
  2. Added check for nil map before adding new serviceProvider which will initialized the map if needed.

guyp-descope avatar Jul 18 '23 09:07 guyp-descope

Hi @crewjam, any feedback on this will be much appreciated. thanks

guyp-descope avatar Jul 25 '23 07:07 guyp-descope