howtos/clean_2f_tokens.md
Pierre-Yves Chibon 8be806683e Document how to clean 2f auth tokens
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-02-18 09:58:13 +01:00

27 lines
402 B
Markdown

# How to remove 2 factors authentication tokens?
* become root on os-master01 and/or os-master01.stg
* Run the following commands:
```
oc project fas
oc get pods
```
* Look for the totpcgi-N-hash pods
* Log into that pod:
```
oc rsh <one of the pods above>
```
* Clean the tokens:
```
totpprov delete-user <fas username>
```
* say yes, exit, and repeat for stg/prod as each has their own db.