| 8 | ) |
| 9 | |
| 10 | type AuthorizeEndpointHandler interface { |
| 11 | // HandleAuthorizeRequest handles an authorize endpoint request. To extend the handler's capabilities, the http request |
| 12 | // is passed along, if further information retrieval is required. If the handler feels that he is not responsible for |
| 13 | // the authorize request, he must return nil and NOT modify session nor responder neither requester. |
| 14 | // |
| 15 | // The following spec is a good example of what HandleAuthorizeRequest should do. |
| 16 | // * https://tools.ietf.org/html/rfc6749#section-3.1.1 |
| 17 | // response_type REQUIRED. |
| 18 | // The value MUST be one of "code" for requesting an |
| 19 | // authorization code as described by Section 4.1.1, "token" for |
| 20 | // requesting an access token (implicit grant) as described by |
| 21 | // Section 4.2.1, or a registered extension value as described by Section 8.4. |
| 22 | HandleAuthorizeEndpointRequest(ctx context.Context, requester AuthorizeRequester, responder AuthorizeResponder) error |
| 23 | } |
| 24 | |
| 25 | type TokenEndpointHandler interface { |
| 26 | // PopulateTokenEndpointResponse is responsible for setting return values and should only be executed if |
no outgoing calls
no test coverage detected