mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 18:56:11 +01:00
20 lines
330 B
Go
20 lines
330 B
Go
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
//go:build windows
|
||
|
|
||
|
package auth
|
||
|
|
||
|
import (
|
||
|
"github.com/quasoft/websspi"
|
||
|
)
|
||
|
|
||
|
type SSPIUserInfo = websspi.UserInfo
|
||
|
|
||
|
func sspiAuthInit() error {
|
||
|
var err error
|
||
|
config := websspi.NewConfig()
|
||
|
sspiAuth, err = websspi.New(config)
|
||
|
return err
|
||
|
}
|