IntegrationAuthResponse is sent back as a response to auth checks
| 59 | |
| 60 | // IntegrationAuthResponse is sent back as a response to auth checks |
| 61 | type IntegrationAuthResponse interface { |
| 62 | // CheckResponse signifies whether the response of the integration module needs to be checked or now. |
| 63 | // If the value `true` is returned, this means the integration moduke intends to control the response of |
| 64 | // the auth request. |
| 65 | CheckResponse() bool |
| 66 | |
| 67 | // The error to be sent back. This error is generated by the integration module. An error can be present when |
| 68 | // an integration is trying to configure a resource which it does not have access to. |
| 69 | Error() error |
| 70 | |
| 71 | // Status returns the status code returned by the integration |
| 72 | Status() int |
| 73 | |
| 74 | // Result returns the value returned by the the hook. It will always be an []interface{} or map[string]interface{}. |
| 75 | // The receiver must decode it into the appropriate struct if necessary. |
| 76 | Result() interface{} |
| 77 | } |
| 78 | |
| 79 | // IntegrationHookResponse describes the response format of integration hooks |
| 80 | type IntegrationHookResponse struct { |
no outgoing calls
no test coverage detected