blob: 855f446e989762acf929e2174e36b92adc487450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<form class="default" action="<?= $controller->url_for('api/oauth2/clients/store') ?>" method="post">
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend>
<?= _('Basisdaten des OAuth2-Clients') ?>
</legend>
<label>
<span class="required">
<?= _('Name') ?>
</span>
<input required type="text" name="name">
</label>
<label>
<span class="required">
<?= _('Redirect-URIs') ?>
</span>
<textarea required name="redirect" placeholder="<?= _('schema://<redirect-uri-1>\nschema://<redirect-uri-2>') ?>" maxlength="1000"></textarea>
</label>
<label>
<span>
<?= _('Beschreibung') ?>
</span>
<textarea name="description" maxlength="1000"></textarea>
</label>
</fieldset>
<fieldset class="oauth2-clients--confidentiality">
<legend class="required">
<?= _('Kann der OAuth2-Client kryptographische Geheimnisse bewahren?') ?>
</legend>
<div>
<input type="radio" name="confidentiality" value="public" id="oauth2-clients-confidentiality--public" required>
<label for="oauth2-clients-confidentiality--public">
<?= _('Nein. Es handelt sich zum Beispiel um eine <span lang="en">Mobile App</span> oder <span lang="en">Single Page App</span>.') ?>
</label>
</div>
<div>
<input type="radio" name="confidentiality" value="confidential" id="oauth2-clients-confidentiality--confidential">
<label for="oauth2-clients-confidentiality--confidential">
<?= _('Ja, dieser OAuth2-Client kann ein kryptographisches Geheimnis bewahren.') ?>
</label>
</div>
</fieldset>
<fieldset>
<legend>
<?= _('Meta-Informationen') ?>
</legend>
<label>
<span class="required">
<?= _('Von wem wird der OAuth2-Client entwickelt?') ?>
</span>
<input required type="text" name="owner" maxlength="100">
</label>
<label>
<span class="required">
<?= _('Homepage der Entwickelnden des OAuth2-Clients') ?>
</span>
<input required type="url" name="homepage" maxlength="200">
</label>
<label>
<span>
<?= _('Notizen (nur für Root-Accounts sichtbar)') ?>
</span>
<textarea name="admin_notes"></textarea>
</label>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Erstellen'), 'create_client', [
'title' => _('Neuen OAuth2-Client erstellen'),
]) ?>
<?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/oauth2'), [
'title' => _('Zurück zur Übersicht'),
]) ?>
</footer>
</form>
|