forked from sofastack/sofa-registry
-
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.
- Loading branch information
昱恒
committed
Oct 18, 2021
1 parent
c1a9bef
commit 579d1f4
Showing
6 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
.../server/meta/src/main/java/com/alipay/sofa/registry/server/meta/resource/AuthChecker.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,21 @@ | ||
/** | ||
* Alipay.com Inc. | ||
* Copyright (c) 2004-2021 All Rights Reserved. | ||
*/ | ||
package com.alipay.sofa.registry.server.meta.resource; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
|
||
/** | ||
* | ||
* @author xiaojian.xj | ||
* @version : AuthChecker.java, v 0.1 2021年10月18日 14:22 xiaojian.xj Exp $ | ||
*/ | ||
public final class AuthChecker { | ||
|
||
private static final String AUTH_TOKEN = "6c62lk8dmQoE5B8X"; | ||
|
||
public static boolean authCheck(String token) { | ||
return StringUtils.equals(AUTH_TOKEN, token); | ||
} | ||
} |
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