okta / okta-spring-boot

Okta Spring Boot Starter
326 stars 136 forks source link

Documentation uses "marked for removal" examples #672

Open mvinca-bandwidth opened 7 months ago

mvinca-bandwidth commented 7 months ago

: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

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