aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/sspiauth_windows.go
blob: 093caaed33c373078ba570b8fdcb8257eac2dfcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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
}