Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

auth_windows.go 603B

12345678910111213141516171819
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package web
  4. import (
  5. "code.gitea.io/gitea/models/auth"
  6. auth_service "code.gitea.io/gitea/services/auth"
  7. )
  8. // specialAdd registers the SSPI auth method as the last method in the list.
  9. // The SSPI plugin is expected to be executed last, as it returns 401 status code if negotiation
  10. // fails (or if negotiation should continue), which would prevent other authentication methods
  11. // to execute at all.
  12. func specialAdd(group *auth_service.Group) {
  13. if auth.IsSSPIEnabled() {
  14. group.Add(&auth_service.SSPI{})
  15. }
  16. }