English 中文(简体)
伪造法
原标题:Code verifier not sent with spring reactive security

我正试图用春天boot子设立前itter。 问题是,代号“核查参数”在春季安全时不会被采纳。 我是否必须混淆一个信条,以便照搬该法典? 是否有办法使重新活跃的OAuth2Access TokenResponseClient成为向被点寄送的身体定制?

这里是我的春季安全会议:

    public SecurityWebFilterChain securityWebFilterChain(
            ServerHttpSecurity http) {
        return http.authorizeExchange()
                .anyExchange().authenticated()
                .and().oauth2Login().and().build();
    }
  security:
    oauth2:
      client:
        registration:
          twitter:
            client-id: xxx
            client-secret: xxx
            authorization-grant-type: authorization_code
            redirect-uri: http://localhost:8080/login/oauth2/code/twitter
        provider:
          twitter:
            authorization-uri: https://twitter.com/i/oauth2/authorize?response_type=code&client_id=xxx&redirect_uri=http://localhost:8080/login/oauth2/code/twitter&scope=tweet.read%20users.read%20follows.read%20follows.write&code_challenge=challenge&code_challenge_method=plain
            token-uri: https://api.twitter.com/2/oauth2/token
            user-info-uri: https://api.twitter.com/2/users/me
            user-name-attribute: data
最佳回答

仍然寻求答案的人: 您可以通过超越<条码>来定制象征性的要求机构。 WebClient ReactiveAuthorizationCode TokenResponseClient bean and use the setPara amount methods. 例如:

@Bean
public WebClientReactiveAuthorizationCodeTokenResponseClient webClientReactiveAuthorizationCodeTokenResponseClient() {
    WebClientReactiveAuthorizationCodeTokenResponseClient webClientReactiveAuthorizationCodeTokenResponseClient =
            new WebClientReactiveAuthorizationCodeTokenResponseClient();
        webClientReactiveAuthorizationCodeTokenResponseClient.setParametersConverter(source -> {
        MultiValueMap<String, String> parameters = new LinkedMultiValueMap();
        parameters.add("grant_type", source.getGrantType().getValue());
        //...
        return parameters;
    });

    return webClientReactiveAuthorizationCodeTokenResponseClient;
}
问题回答

我要问一个问题。 我对我的代码背书《URL》进行了定制,但我曾遇到一个问题,我可以检索密码。 我在这种情况下应该做些什么?

谢谢!





相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...