Skip to content

Commit 043d3aa

Browse files
fixes
1 parent 153e02e commit 043d3aa

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

app/templates/oidc_settings.html

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h5 class="border-bottom pb-2">Basic Configuration</h5>
7979
{{ form.discovery_endpoint.label(class="form-label") }}
8080
{{ form.discovery_endpoint(class="form-control") }}
8181
<small class="form-text text-muted">
82-
OIDC Discovery URL (usually ends with .well-known/openid-configuration)
82+
OIDC Discovery URL (optional if discovery endpoint is blocked/restricted - leave blank to use manual endpoints below)
8383
</small>
8484
{% if form.discovery_endpoint.errors %}
8585
<div class="text-danger mt-1">
@@ -89,6 +89,57 @@ <h5 class="border-bottom pb-2">Basic Configuration</h5>
8989
</div>
9090
{% endif %}
9191
</div>
92+
93+
<div class="alert alert-info">
94+
<i class="fas fa-info-circle me-2"></i>
95+
<strong>Manual Endpoints:</strong> If your identity provider blocks the discovery endpoint (403 Forbidden),
96+
leave the Discovery Endpoint blank and fill in the three manual endpoints below instead.
97+
</div>
98+
99+
<div class="mb-3">
100+
{{ form.authorization_endpoint.label(class="form-label") }}
101+
{{ form.authorization_endpoint(class="form-control") }}
102+
<small class="form-text text-muted">
103+
Manual authorization endpoint (required if discovery is blocked)
104+
</small>
105+
{% if form.authorization_endpoint.errors %}
106+
<div class="text-danger mt-1">
107+
{% for error in form.authorization_endpoint.errors %}
108+
<small>{{ error }}</small>
109+
{% endfor %}
110+
</div>
111+
{% endif %}
112+
</div>
113+
114+
<div class="mb-3">
115+
{{ form.token_endpoint.label(class="form-label") }}
116+
{{ form.token_endpoint(class="form-control") }}
117+
<small class="form-text text-muted">
118+
Manual token endpoint (required if discovery is blocked)
119+
</small>
120+
{% if form.token_endpoint.errors %}
121+
<div class="text-danger mt-1">
122+
{% for error in form.token_endpoint.errors %}
123+
<small>{{ error }}</small>
124+
{% endfor %}
125+
</div>
126+
{% endif %}
127+
</div>
128+
129+
<div class="mb-3">
130+
{{ form.userinfo_endpoint.label(class="form-label") }}
131+
{{ form.userinfo_endpoint(class="form-control") }}
132+
<small class="form-text text-muted">
133+
Manual userinfo endpoint (required if discovery is blocked)
134+
</small>
135+
{% if form.userinfo_endpoint.errors %}
136+
<div class="text-danger mt-1">
137+
{% for error in form.userinfo_endpoint.errors %}
138+
<small>{{ error }}</small>
139+
{% endfor %}
140+
</div>
141+
{% endif %}
142+
</div>
92143
</div>
93144

94145
<div class="mb-4">

0 commit comments

Comments
 (0)