feat: add OAuth login and MCP session connect
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package auth
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestOAuthIdentity(t *testing.T) {
|
||||
gotN, gotV := oauthIdentity(Config{Name: "tradey", Version: "0.9"})
|
||||
if gotN != "tradey" || gotV != "0.9" {
|
||||
t.Fatalf("%s %s", gotN, gotV)
|
||||
}
|
||||
gotN, gotV = oauthIdentity(Config{})
|
||||
if gotN != DefaultName || gotV != DefaultVersion {
|
||||
t.Fatalf("%s %s", gotN, gotV)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user