forked from box/mojito
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3b75f5
commit de0e692
Showing
6 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
webapp/src/main/java/com/box/l10n/mojito/security/HeaderSecurityConfig.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,16 +1,20 @@ | ||
package com.box.l10n.mojito.security; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration() | ||
@ConditionalOnExpression("'${l10n.security.authenticationType:}'.toUpperCase().contains('HEADER')") | ||
public class HeaderSecurityConfig { | ||
|
||
@Value("${l10n.spring.security.header.user.identifyingHeader:}") | ||
public String userIdentifyingHeader; | ||
|
||
@Value("${l10n.spring.security.header.service.identifyingHeader:}") | ||
public String serviceIdentifyingHeader; | ||
|
||
@Value("${l10n.spring.security.header.service.identifyingPrefix:}") | ||
public String servicePrefix; | ||
|
||
@Value("${l10n.spring.security.header.service.delimiter:/}") | ||
public String serviceDelimiter; | ||
} |
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
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
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