okta-spring-boot icon indicating copy to clipboard operation
okta-spring-boot copied to clipboard

Documentation uses "marked for removal" examples

Open mvinca-bandwidth opened this issue 10 months ago • 0 comments

:information_source: If you have a question, please post it on the Okta Developer Forum instead. Issues in this repository are reserved for bug reports and feature requests only.

I'm submitting a

  • [ ] bug report
  • [x] feature request

Background info

The README has examples, best captured by this one:

    @Bean 
    public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
        http
            .authorizeExchange()
                .anyExchange().authenticated()
                .and()
            .oauth2Login()
                .and()
            .oauth2ResourceServer()
                .jwt();
        return http.build();
    }

Expected behavior

This works now, but soon won't. It should be replaced by the Okta recommended way (whatever that is) to use the new replacement functions.

What went wrong?

It gives deprecation warnings all over the place.

Steps to reproduce

Compile the example

SDK Version

mvinca-bandwidth avatar Apr 12 '24 12:04 mvinca-bandwidth