
Sorry for not testing before.
So I am trying to access using a token. When trying to use access a single profile (the code works wiht production) I am getting the following error message:
Max retries exceeded with url: /api/profile-gxxxxxx?access_token=mytoken (Caused by SSLError(CertificateError("hostname 'www.sandbox.geni.com' doesn't match either of '*.geni.com', 'geni.com')
So... I tried to make the connection without verifying the certificate and works, so sandbox is operational (great!), but I am not comfortable with this.
Is there any path to a certification file? How any of you fixed this issue?
I think access key have to come from the sandbox as well https://sandbox.geni.com/platform/developer/apps
Personally I prefer using Authorization in the request header:
https://github.com/bpbrox/GeniApiSample/blob/master/GeniApiSample/J...
https://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-21
I prefer this method because it let me add Authorization in the base code independent of URL arguments, and of course hide the accesscode.
Um... that's the protocol behind, not the the method (flow actually in geni naming, I might have introduced some confusion here with my wrong question: https://www.geni.com/platform/developer/help/oauth_intro?version=1)
Essentially all methods require accessing to an oauth webpage where you authorize the third party application to proceed with a given token.
Ideally I would prefer to load in my desktop app a webpage...
Anyhow, I am one step further... I already have a token for the sandbox (or geni itself), the problem that appears happening here is that the api available in the sandbox is missing the proper certificate so that only unsecure connection can be created.
So, the problem is not getting and oauth token, the problem is the certificate of the api. Likely you should have the same problem wiht your code if using sandbox.