https://github.com/voltan/openshift-php
https://github.com/voltan/openshift-php
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/voltan/openshift-php
- Owner: voltan
- Created: 2019-01-18T12:22:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T12:23:00.000Z (over 7 years ago)
- Last Synced: 2025-06-03T02:16:43.524Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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