OAuth API Examples

Are there any working examples of using foreman oauth with consumer key/secret? Ive seen a few good articles regarding oauth using these functions but no way to tie those to foreman. What would the call back url be for that?

Im looking for either a perl or ruby example. But any language will do as long as I can get an example of authenticating in foreman with the consumer key/secret.


One example is the base class we use for our puppet providers. It uses the oauth gem to do the heavy lifting.

Thank you, I was able to work out all the details from that.