mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-06-29 01:44:19 +00:00
Update scope validator
This commit is contained in:
parent
33671e6dd1
commit
5b1daaefc3
6 changed files with 52 additions and 51 deletions
|
@ -19,7 +19,8 @@ func ParseVersionDate(version string) (time.Time, error) {
|
|||
// This function returns the version string, using the cutover date if empty
|
||||
func GetVersionWithDefault(version string) string {
|
||||
if version == "" {
|
||||
return constants.SpecCutoverDate.Format("2006-01-02")
|
||||
defaultTime, _ := time.Parse(constants.TimeLayout, "2025-05-15")
|
||||
return defaultTime.Format(constants.TimeLayout)
|
||||
}
|
||||
return version
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue