Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: appengine/components/components/auth/ui/templates/bootstrap_oauth.html

Issue 2836223002: auth: Add a page to setup web client ID for a service. (Closed)
Patch Set: nit Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/components/components/auth/ui/templates/bootstrap_oauth.html
diff --git a/appengine/components/components/auth/ui/templates/bootstrap_oauth.html b/appengine/components/components/auth/ui/templates/bootstrap_oauth.html
new file mode 100644
index 0000000000000000000000000000000000000000..4e36ef04927ab0ac226b1a2afbe129963f2a1723
--- /dev/null
+++ b/appengine/components/components/auth/ui/templates/bootstrap_oauth.html
@@ -0,0 +1,29 @@
+{% extends 'auth/base_minimal.html' %}
+{% block content %}
+
+<h2>OAuth2 web client ID setup</h2>
+<p>The service is using Google Sign-In for authenticating web users. It needs
+a properly configured client ID. See <a href="https://developers.google.com/identity/sign-in/web/devconsole-project">
+this page</a> for instructions how to create one.
+</p>
+
+<hr>
+
+{% if saved %}
+ <div class="alert alert-success alert-dismissible" role="alert">
+ <strong>Saved!</strong> The change can take up to 5 min to apply.
+ </div>
+{% endif %}
+
+<form method="POST">
+ <input type="hidden" name="xsrf_token" value="{{xsrf_token}}" />
+ <div class="form-group">
+ <label for="web_client_id">Client ID</label>
+ <input class="form-control" id="web_client_id" name="web_client_id" value="{{web_client_id}}">
+ </div>
+ <div class="form-group">
+ <button type="submit" class="btn btn-primary">Save</button>
+ </div>
+</form>
+
+{% endblock %}

Powered by Google App Engine
This is Rietveld 408576698