{% import ( "source.toby3d.me/toby3d/auth/internal/domain" ) %} {% code type HomePage struct { BaseOf Client *domain.Client State string } %} {% collapsespace %} {% func (p *HomePage) head() %} {%= p.BaseOf.head() %} {% for i := range p.Client.RedirectURI %} {% endfor %} {% endfunc %} {% func (p *HomePage) body() %}
{% if p.Client.Logo != nil %} {% endif %}

{%s p.Client.Name %}

{% for name, value := range map[string]string{ "client_id": p.Client.ID.String(), "redirect_uri": p.Client.RedirectURI[0].String(), "response_type": domain.ResponseTypeCode.String(), "scope": domain.Scopes{domain.ScopeEmail, domain.ScopeProfile}.String(), "state": p.State, } %} {% endfor %}
{% endfunc %} {% endcollapsespace %}