com.tencent.devops.common.client.ClientTokenService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-client Show documentation
Show all versions of common-client Show documentation
Tencent blueking ci project
package com.tencent.devops.common.client
import com.tencent.devops.common.redis.RedisOperation
import com.tencent.devops.common.service.BkTag
import org.springframework.beans.factory.annotation.Value
class ClientTokenService(
val redisOperation: RedisOperation,
val bkTag: BkTag
) {
@Value("\${auth.token:#{null}}")
private val systemToken: String = ""
fun getSystemToken(): String {
return systemToken
}
fun checkToken(token: String): Boolean {
return systemToken == token
}
companion object {
const val DEFAULT_APP = "ci"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy