MCPcopy Create free account
hub / github.com/daodst/chat / Challenge

Method Challenge

clientapi/auth/user_interactive.go:153–163  ·  view source on GitHub ↗

Challenge returns an HTTP 401 with the supported flows for authenticating

(sessionID string)

Source from the content-addressed store, hash-verified

151
152// Challenge returns an HTTP 401 with the supported flows for authenticating
153func (u *UserInteractive) Challenge(sessionID string) *util.JSONResponse {
154 return &util.JSONResponse{
155 Code: 401,
156 JSON: Challenge{
157 Completed: u.Sessions[sessionID],
158 Flows: u.Flows,
159 Session: sessionID,
160 Params: make(map[string]interface{}),
161 },
162 }
163}
164
165// NewSession returns a challenge with a new session ID and remembers the session ID
166func (u *UserInteractive) NewSession() *util.JSONResponse {

Callers 2

NewSessionMethod · 0.95
ResponseWithChallengeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected