Skip to content

Commit

Permalink
OAuth2: Add example authorize URL to edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Oct 31, 2023
1 parent 76f9f58 commit e0553d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/templates/oauth/create_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ <h1 class="mt-0">{{ self.title() }}</h1>
<input class="form-control" type="text" id="client_id" name="client_id" value="{{ client.id }}" readonly>
</div>
<div class="form-group">
<label class="client_secret-label" for="client_id">client_secret</label>
<label class="form-label" for="client_secret">client_secret</label>
<input class="form-control" type="text" id="client_secret" name="client_secret" value="{{ client.secret }}" readonly>
<p class="form-text text-muted">
{{ _("Keep the secret safe") }}
</p>
</div>
<div class="form-group">
<label class="form-label" for="authorize_url">{{ _("Example Authorize URL") }}</label>
<input class="form-control" type="text" id="authorize_url" name="authorize_url" readonly
value="{{ abs_url_for("oauth.oauth_start", response_type="code", client_id=client.id, redirect_uri=client.redirect_url) }}">
</div>
<p class="text-muted mb-0">
{{ _("Keep the secret safe") }}
</p>
</div>
</div>
{% endif %}
Expand Down

0 comments on commit e0553d0

Please sign in to comment.