NewServer returns a complete HTTP server that responds to the authentication requests.
( cfg config.HTTPServerConfiguration, h AuthRequestHandler, logger log.Logger, )
| 9 | |
| 10 | // NewServer returns a complete HTTP server that responds to the authentication requests. |
| 11 | func NewServer( |
| 12 | cfg config.HTTPServerConfiguration, |
| 13 | h AuthRequestHandler, |
| 14 | logger log.Logger, |
| 15 | ) (http.Server, error) { |
| 16 | return auth.NewServer( |
| 17 | cfg, |
| 18 | h, |
| 19 | logger, |
| 20 | ) |
| 21 | } |