{{ define "OAuthClientApproved" }}

{{ if .EmailCopy.Enabled }}

	{{ .EmailCopy.EmailBody }}

{{ else }}

Your OAuth client data is below - please keep this safe, as it will be unrecoverable later, if you lose it, please speak to your portal administrator to have it reset.

{{ end}}

{{ if .EmailCopy.HideTokenData }}
{{ else }}
API Name: {{range $i, $cat := .Catalogues}}{{$cat.Name}} {{end}}
OAuth client ID: {{.OauthClientID}}
OAuth client Secret: {{.OauthClientSecret}}
{{ end }}

{{ if .EmailCopy.Enabled }}

{{ .EmailCopy.EmailSignoff }}

{{ else }}

You can find out more about Tyk, or the <a href="https://tyk.io">Tyk API Gateway here</a>

Cheers,
 - The Tyk.io team

{{ end}}


{{ end }}