|
|
@@ -7,6 +7,7 @@ import (
|
|
|
"fmt"
|
|
|
"github.com/jcmturner/gokrb5/client"
|
|
|
"github.com/jcmturner/gokrb5/config"
|
|
|
+ "github.com/jcmturner/gokrb5/credentials"
|
|
|
"github.com/jcmturner/gokrb5/keytab"
|
|
|
"github.com/jcmturner/gokrb5/service"
|
|
|
"github.com/jcmturner/gokrb5/testdata"
|
|
|
@@ -85,6 +86,6 @@ func httpServer() *httptest.Server {
|
|
|
func testAppHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
ctx := r.Context()
|
|
|
- fmt.Fprintf(w, "<html>\nTEST.GOKRB5 Handler\nAuthenticed user: %s\nUser's realm: %s\n</html>", ctx.Value("cname").(string), ctx.Value("crealm").(string))
|
|
|
+ fmt.Fprintf(w, "<html>\nTEST.GOKRB5 Handler\nAuthenticed user: %s\nUser's realm: %s\n</html>", ctx.Value("credentials").(credentials.Credentials).Username, ctx.Value("credentials").(credentials.Credentials).Realm)
|
|
|
return
|
|
|
}
|