{% import "source.toby3d.me/website/indieauth/internal/domain" %} {% code type AuthPage struct { BaseOf Client *domain.Client Me *domain.Me RedirectURI *domain.URL CodeChallengeMethod domain.CodeChallengeMethod ResponseType domain.ResponseType Scope domain.Scopes CodeChallenge string CSRF string State string } %} {% func (p *AuthPage) Lang() %} en {% endfunc %} {% func (p *AuthPage) Title() %} Authorize {%s p.Client.Name[0] %} {% endfunc %} {% func (p *AuthPage) Head() %} {% endfunc %} {% func (p *AuthPage) Body() %} {% if p.Client.Logo[0] != nil %} {%s p.Client.Name[0] %} {% endif %}

{%s p.Client.Name[0] %}

{% if p.CSRF != "" %} {% endif %} {% if p.CodeChallenge != "" %} {% endif %} {% if len(p.Scope) != 0 %} {% endif %} {% if p.Me != nil %} {% endif %}
{% endfunc %}