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
Open

URI white list #354

avelino opened this issue Apr 30, 2019 · 0 comments
Labels
feature New fetures

Comments

@avelino
Copy link
Member

avelino 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 New fetures label Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New fetures
Projects
None yet
Development

No branches or pull requests

1 participant