浏览代码

Clarify default OAuth 2.0 login page requirements

Fixes gh-5996
Vedran Pavic 6 年之前
父节点
当前提交
605469db06
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/manual/src/docs/asciidoc/_includes/servlet/additional-topics/oauth2.adoc

+ 4 - 0
docs/manual/src/docs/asciidoc/_includes/servlet/additional-topics/oauth2.adoc

@@ -96,6 +96,10 @@ The following sections go into more detail on each of the configuration options
 By default, the OAuth 2.0 Login Page is auto-generated by the `DefaultLoginPageGeneratingFilter`.
 The default login page shows each configured OAuth Client with its `ClientRegistration.clientName` as a link, which is capable of initiating the Authorization Request (or OAuth 2.0 Login).
 
+[NOTE]
+In order for `DefaultLoginPageGeneratingFilter` to show links for configured OAuth Clients, the registered `ClientRegistrationRepository` needs to also implement `Iterable<ClientRegistration>`.
+See `InMemoryClientRegistrationRepository` for reference.
+
 The link's destination for each OAuth Client defaults to the following:
 
 `OAuth2AuthorizationRequestRedirectFilter.DEFAULT_AUTHORIZATION_REQUEST_BASE_URI` + "/{registrationId}"