Set the remote for an authz pluginv2
(remote string)
| 64 | |
| 65 | // Set the remote for an authz pluginv2 |
| 66 | func (a *authorizationPlugin) SetName(remote string) { |
| 67 | a.name = remote |
| 68 | } |
| 69 | |
| 70 | func (a *authorizationPlugin) AuthZRequest(authReq *Request) (*Response, error) { |
| 71 | if err := a.initPlugin(); err != nil { |