| 142 | } |
| 143 | |
| 144 | type Challenge struct { |
| 145 | Completed []string `json:"completed"` |
| 146 | Flows []userInteractiveFlow `json:"flows"` |
| 147 | Session string `json:"session"` |
| 148 | // TODO: Return any additional `params` |
| 149 | Params map[string]interface{} `json:"params"` |
| 150 | } |
| 151 | |
| 152 | // Challenge returns an HTTP 401 with the supported flows for authenticating |
| 153 | func (u *UserInteractive) Challenge(sessionID string) *util.JSONResponse { |
nothing calls this directly
no outgoing calls
no test coverage detected