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

Can't create admin scope for permissions for wildcard hosts #249

Closed
GUI opened this issue Jun 18, 2015 · 1 comment
Closed

Can't create admin scope for permissions for wildcard hosts #249

GUI opened this issue Jun 18, 2015 · 1 comment
Assignees

Comments

@GUI
Copy link
Member

GUI commented Jun 18, 2015

We recently added support for API backends to be defined for wildcard hostnames: #240 However, we can't actually create admin scopes and groups for these wildcard backends to dole out permissions to agencies. Currently only super-admins can access these wildcard API backends.

The issue is that if you try to create an API Scope for a wildcard hostname like .api.example.com, the API Scope form will reject the request for containing what it thinks is an invalid hostname. I think the simple fix is that we just need to flip the host validation for the API Scope area to use the hostname format that also accepts our wildcards: https://github.com/NREL/api-umbrella-web/blob/89ca4224238993fd1d2fa639795f4cd819424e48/lib/common_validations.rb Then I think the rest of the permissions may work.

GUI added a commit to NREL/api-umbrella-web that referenced this issue Aug 13, 2015
@GUI
Copy link
Member Author

GUI commented Aug 21, 2015

@GUI GUI closed this as completed Aug 21, 2015
@GUI GUI self-assigned this Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant