(gateway net.Gateway, config coreconfig.ReadWriter, dumper net.RequestDumper)
| 46 | var ErrPreventRedirect = errors.New("prevent-redirect") |
| 47 | |
| 48 | func NewUAARepository(gateway net.Gateway, config coreconfig.ReadWriter, dumper net.RequestDumper) UAARepository { |
| 49 | return UAARepository{ |
| 50 | config: config, |
| 51 | gateway: gateway, |
| 52 | dumper: dumper, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func (uaa UAARepository) Authorize(token string) (string, error) { |
| 57 | httpClient := &http.Client{ |
no outgoing calls