Scalingo/go-scalingo

RegionList should be optionally authenticated

johnsudaar opened this issue · 2 comments

RegionList should be optionally authenticated

In fact the issue is a bit broader than that. Some endpoints are optionally authenticated. There is no support for that currently in the current release of go-scalingo. If you try to access an endpoint that could be optionally authenticated with a unauthenticated client, the library panic during the token generation.

Just skipping this step on an unauthenticated client will let us access optionally authenticated client resources with a unauthenticated client.