Challenge returns an HTTP 401 with the supported flows for authenticating
(sessionID string)
| 151 | |
| 152 | // Challenge returns an HTTP 401 with the supported flows for authenticating |
| 153 | func (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 |
| 166 | func (u *UserInteractive) NewSession() *util.JSONResponse { |
no outgoing calls
no test coverage detected