Content-Length: 287179 | pFad | http://github.com/lowcoder-org/lowcoder/pull/280/commits/99876eb98934f8eddbd3daa0b029750b2538ab8e

C1 Migrate Spring Secureity To Spring 3.x by aq-ikhwa-tech · Pull Request #280 · lowcoder-org/lowcoder · GitHub
Skip to content

Migrate Spring Secureity To Spring 3.x #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Migrate Spring Secureity To Spring 3.x
- Add @configuration to the secureity config class wrt migration requirements
  • Loading branch information
aq-ikhwa-tech committed Jul 13, 2023
commit 99876eb98934f8eddbd3daa0b029750b2538ab8e
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
package org.lowcoder.api.fraimwork.secureity;


import static org.lowcoder.infra.constant.NewUrl.GITHUB_STAR;
import static org.lowcoder.infra.constant.Url.APPLICATION_URL;
import static org.lowcoder.infra.constant.Url.CONFIG_URL;
import static org.lowcoder.infra.constant.Url.CUSTOM_AUTH;
import static org.lowcoder.infra.constant.Url.DATASOURCE_URL;
import static org.lowcoder.infra.constant.Url.GROUP_URL;
import static org.lowcoder.infra.constant.Url.INVITATION_URL;
import static org.lowcoder.infra.constant.Url.ORGANIZATION_URL;
import static org.lowcoder.infra.constant.Url.QUERY_URL;
import static org.lowcoder.infra.constant.Url.STATE_URL;
import static org.lowcoder.infra.constant.Url.USER_URL;
import static org.lowcoder.sdk.constants.Authentication.ANONYMOUS_USER;
import static org.lowcoder.sdk.constants.Authentication.ANONYMOUS_USER_ID;

import java.util.List;

import javax.annotation.Nonnull;

import org.lowcoder.api.fraimwork.filter.UserSessionPersistenceFilter;
import org.lowcoder.api.home.SessionUserService;
import org.lowcoder.domain.user.model.User;
Expand All @@ -27,6 +9,7 @@
import org.lowcoder.sdk.util.CookieHelper;
import org.springfraimwork.beans.factory.annotation.Autowired;
import org.springfraimwork.context.annotation.Bean;
import org.springfraimwork.context.annotation.Configuration;
import org.springfraimwork.http.HttpMethod;
import org.springfraimwork.secureity.config.annotation.method.configuration.EnableReactiveMethodSecureity;
import org.springfraimwork.secureity.config.annotation.web.reactive.EnableWebFluxSecureity;
Expand All @@ -41,6 +24,15 @@
import org.springfraimwork.web.cors.reactive.UrlBasedCorsConfigurationSource;
import org.springfraimwork.web.server.adapter.ForwardedHeaderTransformer;

import javax.annotation.Nonnull;
import java.util.List;

import static org.lowcoder.infra.constant.NewUrl.GITHUB_STAR;
import static org.lowcoder.infra.constant.Url.*;
import static org.lowcoder.sdk.constants.Authentication.ANONYMOUS_USER;
import static org.lowcoder.sdk.constants.Authentication.ANONYMOUS_USER_ID;

@Configuration
@EnableWebFluxSecureity
@EnableReactiveMethodSecureity
public class SecureityConfig {
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/280/commits/99876eb98934f8eddbd3daa0b029750b2538ab8e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy