13 lines
28 KiB
Go
13 lines
28 KiB
Go
|
// This file was generated by the makefile. Do not edit.
|
||
|
|
||
|
package server
|
||
|
|
||
|
// defaultTemplates is a key for file name to file data of the files in web/templates.
|
||
|
var defaultTemplates = map[string]string{
|
||
|
"approval.html": "{{ template \"header.html\" . }}\n\n<div class=\"panel\">\n <h2 class=\"heading\">Grant Access</h2>\n\n <hr>\n <div class=\"list-with-title\">\n <div class=\"subtle-text\">{{ .Client }} would like to:</div>\n {{ range $scope := .Scopes }}\n <li class=\"bullet-point\">\n <div class=\"subtle-text\">\n {{ $scope }}\n </div>\n </li>\n {{ end }}\n </div>\n <hr>\n\n <div>\n <div class=\"form-row\">\n <form method=\"post\">\n <input type=\"hidden\" name=\"state\" value=\"{{ .State }}\"/>\n <input type=\"hidden\" name=\"approval\" value=\"approve\">\n <button type=\"submit\" class=\"btn btn-success\">\n <span class=\"btn-text\">Grant Access</span>\n </button>\n </form>\n </div>\n <div class=\"form-row\">\n <form method=\"post\">\n <input type=\"hidden\" name=\"state\" value=\"{{ .State }}\"/>\n <input type=\"hidden\" name=\"approval\" value=\"rejected\">\n <button type=\"submit\" class=\"btn btn-provider\">\n <span class=\"btn-text\">Cancel</span>\n </button>\n </form>\n </div>\n </div>\n\n</div>\n\n{{ template \"footer.html\" . }}\n",
|
||
|
"footer.html": " </div>\n </body>\n</html>\n",
|
||
|
"header.html": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n <title>{{ .Issuer }}</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <style>\n * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n html,\n body {\n margin: 0;\n background-color: #efefef;\n font-family: 'Source Sans Pro', Helvetica, sans-serif;\n color: #333;\n }\n a {\n color: #428BCA;\n text-decoration: none;\n }\n a:active, a:hover, a:visited {\n color: #2A6596;\n text-decoration: underline;\n }\n #navbar {\n background-color: #fff;\n color: #333;\n height: 46px;\n box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);\n font-size: 13px;\n font-weight: 100;\n overflow: hidden;\n padding: 0 10px;\n }\n #navbar-logo-wrap {\n width: 300px;\n height: 100%;\n display: inline-block;\n overflow: hidden;\n padding: 10px 15px;\n }\n #navbar-logo {\n height: 100%;\n max-height: 25px;\n }\n #container {\n margin: 45px auto;\n text-align: center;\n max-width: 500px;\n min-width: 320px;\n }\n .heading {\n font-size: 20px;\n font-weight: 500;\n margin-top: 0;\n margin-bottom: 10px;\n }\n .footer {\n margin: 30px;\n }\n .input-label-right {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n .input-desc {\n width: 250px;\n margin: 4px auto;\n text-align: left;\n position: relative;\n }\n .subtle-text {\n color: #999;\n font-size: 12px;\n }\n .panel {\n background-color: #fff;\n padding: 30px;\n box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);\n }\n .explain {\n font-size: 13px;\n color: #666;\n }\n\n .btn {\n box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25), 0 0px 1px rgba(0, 0, 0, 0.25);\n padding: 0;\n font-size: 14px;\n border-radius: 4px;\n border: none;\n cursor: pointer;\n font-size: 16px;\n }\n .btn:focus {\n outline: none;\n }\n .btn:active {\n outline: none;\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\n }\n .btn-primary {\n color: #fff;\n background-color: #333;\n padding: 6px 12px;\n min-width: 200px;\n border: none;\n }\n .btn-primary:hover {\n background-color: #666;\n color: #fff;\n }\n .btn-provider {\n background-color: #fff;\n color: #333;\n width: 250px;\n }\n .btn-provider:hover {\n color: #999;\n }\n .btn-success {\n background-color: #2FC98E;\n color: #fff;\n width: 250px;\n }\n .btn-success:hover {\n background-color: #49E3A8;\n }\n .btn-icon {\n width: 36px;\n height: 36px;\n float: left;\n margin-right: 5px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 24px;\n }\n .btn-icon-google {\n background-color: #DB4437;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzdweCIgdmlld0JveD0iMCAwIDM2IDM3IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMy4zLjIgKDEyMDQzKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5TaGFwZSArIGcrPC90aXRsZT4KICAgIDxkZXNjPkNyZ
|
||
|
"login.html": "{{ template \"header.html\" . }}\n\n<div class=\"panel\">\n <h2 class=\"heading\">Log in to {{ .Issuer }} </h2>\n\n <div>\n {{ range $c := .Connectors }}\n <div class=\"form-row\">\n <a href=\"{{ $c.URL }}?state={{ $.State }}\" target=\"_self\">\n <button class=\"btn btn-provider\">\n <span class=\"btn-icon btn-icon-{{ $c.ID }}\"></span>\n <span class=\"btn-text\">Log in with {{ $c.Name }}</span>\n </button>\n </a>\n </div>\n {{ end }}\n </div>\n\n</div>\n\n\n{{ template \"footer.html\" . }}\n",
|
||
|
"password.html": "{{ template \"header.html\" . }}\n\n<div class=\"panel\">\n <h2 class=\"heading\">Log in to Your Account</h2>\n <form method=\"post\" action=\"{{ .PostURL }}\">\n <div class=\"form-row\">\n <div class=\"input-desc\">\n <label for=\"userid\">Username</label>\n </div>\n\t <input tabindex=\"1\" required id=\"login\" name=\"login\" type=\"text\" class=\"input-box\" placeholder=\"username\" {{ if .Username }}value=\"{{ .Username }}\" {{ else }} autofocus {{ end }}/>\n </div>\n <div class=\"form-row\">\n <div class=\"input-desc\">\n <label for=\"password\">Password</label>\n </div>\n\t <input tabindex=\"2\" required id=\"password\" name=\"password\" type=\"password\" class=\"input-box\" placeholder=\"password\" {{ if .Invalid }} autofocus {{ end }}/>\n </div>\n <input type=\"hidden\" name=\"state\" value=\"{{ .State }}\"/>\n\n {{ if .Invalid }}\n <div class=\"error-box\">\n Invalid username and password.\n </div>\n {{ end }}\n\n <button tabindex=\"3\" type=\"submit\" class=\"btn btn-primary\">Login</button>\n\n </form>\n</div>\n\n{{ template \"footer.html\" . }}\n",
|
||
|
}
|