-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set authorization header for certain api, not all
- Loading branch information
1 parent
af59ea6
commit 9c66b91
Showing
3 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/sopt/org/homepage/common/constants/SecurityConstants.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package sopt.org.homepage.common.constants; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
|
||
public class SecurityConstants { | ||
public static final String SCHEME_NAME = "Authorization"; | ||
|
||
@Value("${jwt.access}") | ||
public static String JWT_KEY; | ||
|
||
@Value("${jwt.refresh}") | ||
private static String REFRESH_KEY; | ||
|
||
// public static long EXPIRATION_TIME = 864_000_000; // 10 days | ||
|
||
private SecurityConstants() {} | ||
} |
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