An open API service indexing awesome lists of open source software.

https://github.com/voltan/openshift-php


https://github.com/voltan/openshift-php

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# openshift-php

**How to use this script**

* Open `exec` function on php
* Call index.php url by set values as GET format
* Used commands is (test username is voltan) :
* `oc create user voltan` - Create user
* `oc create identity ldap_provider:voltan` - Create identity
* `oc create useridentitymapping ldap_provider:voltan voltan` - Add user to identity
* `oc create serviceaccount voltan` - Create service account
* `oc policy add-role-to-user admin system:serviceaccounts:test:voltan` - Add role to service account
* `oc serviceaccounts get-token voltan` - Get service account token


===

Webservice urls :

* `index.php?action=create&username=` - Create user and identity and set user to identity
* `index.php?action=serviceaccount&username=` - Create service account
* `index.php?action=role&username=&role=&service=` - Add role to service account
* `index.php?action=token&username=` - Get service account token