クラス ServerHttpSecurity.OAuth2ClientSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ClientSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.OAuth2ClientSpec extends java.lang.Object
方法の概要
メソッドの詳細
authenticationConverter
public ServerHttpSecurity.OAuth2ClientSpec authenticationConverter(ServerAuthenticationConverter authenticationConverter)
使用するコンバーターを設定します- パラメーター:
authenticationConverter- 使用するコンバーター- 戻り値:
ServerHttpSecurity.OAuth2ClientSpecをカスタマイズする
authenticationManager
public ServerHttpSecurity.OAuth2ClientSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
使用するReactiveAuthenticationManagerを構成します。デフォルトはOAuth2AuthorizationCodeReactiveAuthenticationManagerです- パラメーター:
authenticationManager- 使用するマネージャー- 戻り値:
ServerHttpSecurity.OAuth2ClientSpecをカスタマイズする
clientRegistrationRepository
public ServerHttpSecurity.OAuth2ClientSpec clientRegistrationRepository(ReactiveClientRegistrationRepository clientRegistrationRepository)
ReactiveClientRegistrationRepositoryを構成します。デフォルトでは、値を Bean として検索します。- パラメーター:
clientRegistrationRepository- 使用するリポジトリ- 戻り値:
ServerHttpSecurity.OAuth2ClientSpecをカスタマイズする
authorizedClientRepository
public ServerHttpSecurity.OAuth2ClientSpec authorizedClientRepository(ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
ReactiveClientRegistrationRepositoryを構成します。デフォルトでは、値を Bean として検索します。- パラメーター:
authorizedClientRepository- 使用するリポジトリ- 戻り値:
ServerHttpSecurity.OAuth2ClientSpecをカスタマイズする
authorizationRequestRepository
public ServerHttpSecurity.OAuth2ClientSpec authorizationRequestRepository(ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
OAuth2AuthorizationRequestの格納に使用するリポジトリを設定します。- パラメーター:
authorizationRequestRepository-OAuth2AuthorizationRequestの格納に使用するリポジトリ- 戻り値:
ServerHttpSecurity.OAuth2ClientSpecをカスタマイズする- 導入:
- 5.2
authorizationRedirectStrategy
public ServerHttpSecurity.OAuth2ClientSpec authorizationRedirectStrategy(ServerRedirectStrategy authorizationRedirectStrategy)
認可エンドポイントリダイレクト URI のリダイレクト戦略を設定します。- パラメーター:
authorizationRedirectStrategy- リダイレクト戦略- 戻り値:
- さらなる構成のための
ServerHttpSecurity.OAuth2ClientSpec
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurityの構成を続行できるようにします- 戻り値:
ServerHttpSecurityの構成を続行するには
configure
protected void configure(ServerHttpSecurity http)