Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI white list #354

Open
avelino opened this issue Apr 30, 2019 · 0 comments

Comments

1 participant
@avelino
Copy link
Member

commented Apr 30, 2019

Matches the given url with a whitelist from config.core

example:

func MatchURL(url string) (match bool, err error) {
	for _, exp := range strings.Fields(config.Get.JWTWhiteList) {
		match, err = regexp.Match(exp, []byte(url))
		if match || err != nil {
			return
		}
	}
	return
}

@avelino avelino added the feature label Apr 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.