mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00

users accessing their own servers still don't require confirmation, but accessing other users' servers or services shows a confirmation page.
52 lines
1.4 KiB
HTML
52 lines
1.4 KiB
HTML
{% extends "page.html" %}
|
|
|
|
{% block login_widget %}
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<div class="container col-md-6 col-md-offset-3">
|
|
<h1 class="text-center">Authorize access</h1>
|
|
|
|
<h2>
|
|
A service is attempting to authorize with your
|
|
JupyterHub account
|
|
</h2>
|
|
|
|
<p>
|
|
{{ oauth_client.description }} (oauth URL: {{ oauth_client.redirect_uri }})
|
|
would like permission to identify you.
|
|
{% if scopes == ["identify"] %}
|
|
It will not be able to take actions on your behalf.
|
|
{% endif %}
|
|
</p>
|
|
|
|
<h3>The application will be able to:</h3>
|
|
<div>
|
|
<form method="POST" action="">
|
|
{% for scope in scopes %}
|
|
<div class="checkbox input-group">
|
|
<label>
|
|
<input type="checkbox"
|
|
name="scopes"
|
|
checked="true"
|
|
title="This authorization is required"
|
|
disabled="disabled" {# disabled because it's required #}
|
|
value="{{ scope }}"
|
|
/>
|
|
{# disabled checkbox isn't included in form, so this is the real one #}
|
|
<input type="hidden" name="scopes" value="{{ scope }}"/>
|
|
<span>
|
|
{# TODO: use scope description when there's more than one #}
|
|
See your JupyterHub username and group membership (read-only).
|
|
</span>
|
|
</label>
|
|
</div>
|
|
{% endfor %}
|
|
<input type="submit" value="Authorize" class="form-control btn-jupyter"/>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|