-
Notifications
You must be signed in to change notification settings - Fork 134
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
Unable to use provider with no access to /me
api endpoint
#27
Comments
hi @goblain yet, fact is /auth/me requires not auth at all what do you think? |
as far as I can see on https://api.ovh.com/console/#/auth I bumped into this while working with a restricted client I was provided for OVH account that I'm supposed to use. One way would be to ask for a token that does allow access to the "test" endpoint, but I think that by using unauthenticated endpoint for client testing it is clearer that you only need to have access to the API endpoints for the resources that will actualy be managed. |
then maybe we shall instead remove the "test" in the provider config and let the API return errors or not.? |
looks like my assumption was wrong, just done some testing and it seems that using |
https://github.com/terraform-providers/terraform-provider-ovh/pull/29 updated accordingly |
fixes #27 by switching to /auth/currentCredential for client validation
Expected Behavior
Having OVH Api application credentials I should be able to manage resources I have been granted access to.
Actual Behavior
If access to API on
/me
URI was not granted the provider fails to run withSuggested solution
For verification of client connection switch from
/me
to/auth/time
which returns unix timestamp and does not require explicit access rights granted.While no authentication is required to access this endpoint, if provided and invalid it will still fail.
The text was updated successfully, but these errors were encountered: