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

[Question] Config file to add admin roles? #20

Closed
manugarri opened this issue Apr 5, 2017 · 2 comments
Closed

[Question] Config file to add admin roles? #20

manugarri opened this issue Apr 5, 2017 · 2 comments

Comments

@manugarri
Copy link

I am trying to update a model from outside the local network. Since I am not in localhost I am not an admin.

My question is, how can I override this, is there any option/configuration I can modify?

Thanks one more time.

@vruusmann
Copy link
Member

JAX-RS component NetworkSecurityContextFilter, which is responsible for granting the "admin" role based on the IP address, takes a configuration option trustedAddresses. If this option is set, then it will override the default behaviour:
https://github.com/openscoring/openscoring/blob/master/openscoring-service/src/main/java/org/openscoring/service/NetworkSecurityContextFilter.java#L58-L65

For example:

networkSecurityContextFilter {
  trustedAddresses = ["127.0.0.1", "22.33.44.55"]
}

@manugarri
Copy link
Author

Thanks, as usual :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants