mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
Refactor auth package (#17962)
This commit is contained in:
1 parent
e61b390d54
commit
de8e3948a5
87 files changed
+2880
-2770
No files matched your search
@@ -5,7 +5,7 @@
|
||||
package sspi_test
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/login"
|
||||
"code.gitea.io/gitea/models/auth"
|
||||
"code.gitea.io/gitea/services/auth/source/sspi"
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
// It tightly binds the interfaces and implementation without breaking go import cycles
|
||||
|
||||
type sourceInterface interface {
|
||||
login.Config
|
||||
auth.Config
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &sspi.Source{}
|
||||
@@ -5,7 +5,7 @@
|
||||
package sspi
|
||||
|
||||
import (
|
||||
"code.gitea.io/gitea/models/login"
|
||||
"code.gitea.io/gitea/models/auth"
|
||||
"code.gitea.io/gitea/modules/json"
|
||||
)
|
||||
|
||||
@@ -36,5 +36,5 @@ func (cfg *Source) ToDB() ([]byte, error) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
login.RegisterTypeConfig(login.SSPI, &Source{})
|
||||
auth.RegisterTypeConfig(auth.SSPI, &Source{})
|
||||
}
|
||||
Reference in new issue
Block a user