Skip to content

Commit 713e872

Browse files
committed
fixed discovery endpoint, closes mitreid-connect#1230
1 parent 9baacc0 commit 713e872

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openid-connect-server/src/main/java/org/mitre/discovery/web/DiscoveryEndpoint.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.mitre.openid.connect.view.HttpCodeView;
3636
import org.mitre.openid.connect.view.JsonEntityView;
3737
import org.mitre.openid.connect.web.DynamicClientRegistrationEndpoint;
38+
import org.mitre.openid.connect.web.EndSessionEndpoint;
3839
import org.mitre.openid.connect.web.JWKSetPublishingEndpoint;
3940
import org.mitre.openid.connect.web.UserInfoEndpoint;
4041
import org.slf4j.Logger;
@@ -310,7 +311,7 @@ OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values
310311
m.put("token_endpoint", baseUrl + "token");
311312
m.put("userinfo_endpoint", baseUrl + UserInfoEndpoint.URL);
312313
//check_session_iframe
313-
//end_session_endpoint
314+
m.put("end_session_endpoint", baseUrl + EndSessionEndpoint.URL);
314315
m.put("jwks_uri", baseUrl + JWKSetPublishingEndpoint.URL);
315316
m.put("registration_endpoint", baseUrl + DynamicClientRegistrationEndpoint.URL);
316317
m.put("scopes_supported", scopeService.toStrings(scopeService.getUnrestricted())); // these are the scopes that you can dynamically register for, which is what matters for discovery
@@ -368,7 +369,7 @@ OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values
368369

369370
m.put("code_challenge_methods_supported", Lists.newArrayList(PKCEAlgorithm.plain.getName(), PKCEAlgorithm.S256.getName()));
370371

371-
m.put("device_authorization_endpoint", DeviceEndpoint.URL);
372+
m.put("device_authorization_endpoint", baseUrl + DeviceEndpoint.URL);
372373

373374
model.addAttribute(JsonEntityView.ENTITY, m);
374375

0 commit comments

Comments
 (0)