I have been reading up on HTTP authentication possibilities in openframeworks. From what I can tell the ofxHTTP addon is the most suited, it’s really elaborate!
I’ve created an OSX app for which I want to add a free and also a ‘premium’ version. The premium version will be subscription based so I need to be able to authenticate the local user in some way (i.e. are they still subscribed). I have found https://auth0.com/ which seems to support exactly what I need. However, I am unsure on how to send a request to their servers, and with what protocol. I have looked at the twitter example (also described in thread below) but it is already outdated, and I’m not even sure if the used method is the one I need to be using.
Any pointer into the right direction? Auth0 supports all kinds of platforms, and would be free for a certain amount of ‘users’ and that is sufficient for me.
Some progress here. I was successful with the POST example and was able to get a ‘token’ from the auth0 website for my ‘own’ API.
Based on the examples on their website I understand I can use this token to get e.g. user information (which is what my goal is). However, the GET example is quite cryptic for the level of knowledge that I have. Whereas the POST function uses data fields, which I can populate, the GET function needs me to add someting to the header:
Interesting! I had a client who wanted Auth0 to work with an app I was developing for them, a few years ago, and I asked the Auth0 developers if they had a C/C++ API I could use, and they never got back to me, and the project faded away.