renaming, mocking and begin tests
This commit is contained in:
parent
3d5de74d02
commit
85b71e0867
14 changed files with 309 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package op
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -184,16 +184,10 @@ func (p *DefaultOP) HandleAuthorize(w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
//TODO: return err
|
||||
}
|
||||
err = ValidateAuthRequest(authRequest)
|
||||
err = ValidateAuthRequest(authRequest, p.storage)
|
||||
if err != nil {
|
||||
//TODO: return err
|
||||
}
|
||||
if NeedsExistingSession(authRequest) {
|
||||
// session, err := p.storage.CheckSession(authRequest)
|
||||
// if err != nil {
|
||||
// //TODO: return err
|
||||
// }
|
||||
}
|
||||
// err = p.storage.CreateAuthRequest(authRequest)
|
||||
// if err != nil {
|
||||
// //TODO: return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue