| 1 |
// Copyright (C) MongoDB, Inc. 2017-present. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 |
// not use this file except in compliance with the License. You may obtain |
| 5 |
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
|
| 7 |
//go:build gssapi && !windows && !linux && !darwin |
| 8 |
// +build gssapi,!windows,!linux,!darwin |
| 9 |
|
| 10 |
package auth |
| 11 |
|
| 12 |
import ( |
| 13 |
"fmt" |
| 14 |
"net/http" |
| 15 |
"runtime" |
| 16 |
) |
| 17 |
|
| 18 |
// GSSAPI is the mechanism name for GSSAPI. |
| 19 |
const GSSAPI = "GSSAPI" |
| 20 |
|
| 21 |
func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { |
| 22 |
return nil, newAuthError(fmt.Sprintf("GSSAPI is not supported on %s", runtime.GOOS), nil) |
| 23 |
} |