-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP gh-231
- Loading branch information
Showing
21 changed files
with
1,131 additions
and
1,154 deletions.
There are no files selected for viewing
438 changes: 222 additions & 216 deletions
438
...ls/reactive-client/src/main/java/com/c4soft/springaddons/tutorials/WebSecurityConfig.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 37 additions & 37 deletions
74
...c/main/java/com/c4_soft/springaddons/security/oidc/starter/properties/CorsProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
package com.c4_soft.springaddons.security.oidc.starter.properties; | ||
|
||
import java.util.List; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class CorsProperties { | ||
/** | ||
* Path matcher to which this configuration entry applies | ||
*/ | ||
private String path = "/**"; | ||
|
||
/** | ||
* Default is null | ||
*/ | ||
private Boolean allowCredentials = null; | ||
|
||
/** | ||
* Default is "*" which allows all origins | ||
*/ | ||
private List<String> allowedOriginPatterns = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which allows all methods | ||
*/ | ||
private List<String> allowedMethods = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which allows all headers | ||
*/ | ||
private List<String> allowedHeaders = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which exposes all headers | ||
*/ | ||
private List<String> exposedHeaders = List.of("*"); | ||
|
||
private Long maxAge = null; | ||
|
||
/** | ||
* If left to false, OPTIONS requests are added to permit-all for the {@link CorsProperties#path path matchers} of this {@link CorsProperties} | ||
*/ | ||
private boolean disableAnonymousOptions = false; | ||
/** | ||
* Path matcher to which this configuration entry applies | ||
*/ | ||
private String path = "/**"; | ||
|
||
/** | ||
* Default is null | ||
*/ | ||
private Boolean allowCredentials = null; | ||
|
||
/** | ||
* Default is "*" which allows all origins | ||
*/ | ||
private List<String> allowedOriginPatterns = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which allows all methods | ||
*/ | ||
private List<String> allowedMethods = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which allows all headers | ||
*/ | ||
private List<String> allowedHeaders = List.of("*"); | ||
|
||
/** | ||
* Default is "*" which exposes all headers | ||
*/ | ||
private List<String> exposedHeaders = List.of("*"); | ||
|
||
private Long maxAge = null; | ||
|
||
/** | ||
* If left to false, OPTIONS requests are added to permit-all for the {@link CorsProperties#path | ||
* path matchers} of this {@link CorsProperties} | ||
*/ | ||
private boolean disableAnonymousOptions = false; | ||
} |
Oops, something went wrong.