Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 1.57 KB
#ifdef _TEMPLATES
TEMPLATES(oauth2_authorizing_login, "<form id=\"authorization-form\" method=\"POST\" action=\"{{action}}\" enctype=\"application/x-www-form-urlencoded\"><input type=\"text\" name=\"username\" placeholder=\"username\"></input><br /><input type=\"password\" name=\"password\" placeholder=\"password\"></input><br /><input type=\"hidden\" name=\"response_type\" value=\"{{response_type}}\"></input><input type=\"hidden\" name=\"scope\" value=\"{{scope}}\"></input><input type=\"hidden\" name=\"client_id\" value=\"{{client_id}}\"></input><input type=\"hidden\" name=\"redirect_uri\" value=\"{{redirect_uri}}\"></input><input type=\"hidden\" name=\"state\" value=\"{{state}}\"></input><button>Authorize application</button></form>")
TEMPLATES(oauth2_authorizing_message, "<form id=\"authorization-form\" method=\"POST\" action=\"{{action}}\" enctype=\"application/x-www-form-urlencoded\"><input type=\"hidden\" name=\"response_type\" value=\"{{response_type}}\"></input><input type=\"hidden\" name=\"scope\" value=\"{{scope}}\"></input><input type=\"hidden\" name=\"client_id\" value=\"{{client_id}}\"></input><input type=\"hidden\" name=\"redirect_uri\" value=\"{{redirect_uri}}\"></input><input type=\"hidden\" name=\"state\" value=\"{{state}}\"></input><input type=\"hidden\" name=\"authorize\" value=\"authorize\"></input><button>Authorize application</button> <button>Do not allow</button></form>")
TEMPLATES(oauth2_logout, "You have been logged out.")
TEMPLATES(oauth2_authorizing_error, "Error {{error}} : {{error_description}}")
#endif // _TEMPLATES