OpenShift Bearer OAuth token can be generated by accessing MASTER/oauth/token/request.

Read more on authentication documentation.