<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* launch/blocks/toolSecurity.html.twig */
class __TwigTemplate_b0cbbf6b32cf681c12ceced51fc2a8f454b5662f22001e794d5d1e9f9f997a99 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "launch/blocks/toolSecurity.html.twig"));

        // line 1
        if (twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 1, $this->source); })()), "state", [], "any", false, false, false, 1)) {
            // line 2
            echo "    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-shield-alt\"></i>&nbsp;
        Valid platform originating LTI message (OIDC flow)
    </div>
";
        } else {
            // line 7
            echo "    <div class=\"alert alert-danger\" role=\"alert\">
        <i class=\"fas fa-exclamation-circle\"></i>&nbsp;
        Invalid platform originating LTI message (OIDC flow)
    </div>
";
        }
        // line 12
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-lock\"></i>&nbsp;Tokens
    </div>
    <div class=\"card-body\">
        <dl class=\"list-unstyled\">
            <dt>Id token</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token=";
        // line 22
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 22, $this->source); })()), "payload", [], "any", false, false, false, 22), "token", [], "any", false, false, false, 22), "toString", [], "any", false, false, false, 22), "html", null, true);
        echo "\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"token\" value=\"";
        // line 26
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 26, $this->source); })()), "payload", [], "any", false, false, false, 26), "token", [], "any", false, false, false, 26), "toString", [], "any", false, false, false, 26), "html", null, true);
        echo "\" readonly>
                </div>
            </dd>
            <dt>OIDC state</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token=";
        // line 33
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 33, $this->source); })()), "state", [], "any", false, false, false, 33), "token", [], "any", false, false, false, 33), "toString", [], "any", false, false, false, 33), "html", null, true);
        echo "\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"state\" value=\"";
        // line 37
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 37, $this->source); })()), "state", [], "any", false, false, false, 37), "token", [], "any", false, false, false, 37), "toString", [], "any", false, false, false, 37), "html", null, true);
        echo "\" readonly>
                </div>
            </dd>
        </dl>
    </div>
</div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "launch/blocks/toolSecurity.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  92 => 37,  85 => 33,  75 => 26,  68 => 22,  56 => 12,  49 => 7,  42 => 2,  40 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% if token.state %}
    <div class=\"alert alert-info\" role=\"alert\">
        <i class=\"fas fa-shield-alt\"></i>&nbsp;
        Valid platform originating LTI message (OIDC flow)
    </div>
{% else %}
    <div class=\"alert alert-danger\" role=\"alert\">
        <i class=\"fas fa-exclamation-circle\"></i>&nbsp;
        Invalid platform originating LTI message (OIDC flow)
    </div>
{% endif %}
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-lock\"></i>&nbsp;Tokens
    </div>
    <div class=\"card-body\">
        <dl class=\"list-unstyled\">
            <dt>Id token</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token={{ token.payload.token.toString }}\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"token\" value=\"{{ token.payload.token.toString }}\" readonly>
                </div>
            </dd>
            <dt>OIDC state</dt>
            <dd>
                <div class=\"input-group\">
                    <div class=\"input-group-prepend\">
                        <a target=\"_blank\" class=\"btn btn-secondary\" href=\"https://jwt.io?token={{ token.state.token.toString }}\" role=\"button\" title=\"See on jwt.io\">
                            <i class=\"fas fa-external-link-alt\"></i>
                        </a>
                    </div>
                    <input type=\"text\" class=\"form-control\" placeholder=\"state\" value=\"{{ token.state.token.toString }}\" readonly>
                </div>
            </dd>
        </dl>
    </div>
</div>
", "launch/blocks/toolSecurity.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\launch\\blocks\\toolSecurity.html.twig");
    }
}
