Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-12 Thread Gabe Montero
On Sun, Feb 11, 2018 at 5:43 PM, Tien Hung Nguyen wrote: > Thank you for the information. > > I have disabled now the OAuth2 feature of OpenShift and tried to > authenticate by the default username and password of jenkins to test the > connection between the Jenkins

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-11 Thread Tien Hung Nguyen
Thank you for the information. I have disabled now the OAuth2 feature of OpenShift and tried to authenticate by the default username and password of jenkins to test the connection between the Jenkins Server and another Java REST Service. However, when I try to do a REST Call on my Java Code by

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-10 Thread Ben Parees
On Sat, Feb 10, 2018 at 6:14 AM, Tien Hung Nguyen wrote: > I have found the token in the file of your mentioned path ( > /var/run/secrets/kubernetes.io/serviceaccount). But what is the best way > to import that token into my properties file (which is created during the

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-10 Thread Tien Hung Nguyen
I have found the token in the file of your mentioned path (/var/run/secrets/ kubernetes.io/serviceaccount). But what is the best way to import that token into my properties file (which is created during the container build process via shell scripting) or retrieve the token in my Java Code? My

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-09 Thread Ben Parees
On Fri, Feb 9, 2018 at 5:16 PM, Tien Hung Nguyen wrote: > Thank you for your response. > > Do you know what I have ti import in order to execute OpenShift oc > commands in Java Spring Boot in order to retrieve the token from OpenShift? > Since I don't know much about

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-09 Thread Tien Hung Nguyen
Thank you for your response. Do you know what I have ti import in order to execute OpenShift oc commands in Java Spring Boot in order to retrieve the token from OpenShift? Since I don't know much about Go, I just understand a part of the code. 2018-02-09 20:04 GMT+01:00 Ben Parees

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-09 Thread Ben Parees
On Fri, Feb 9, 2018 at 1:45 PM, Tien Hung Nguyen wrote: > Hello everyone, > > I'm having a Spring Boot Rest Microservice and I'm trying to pull some > information with a Rest call from my Jenkins Server, which is running in an > OpenShift pod (based on the default

Re: OpenShift Jenkins OAuth2 Authentication using Spring Boot

2018-02-09 Thread Gabe Montero
On Fri, Feb 9, 2018 at 1:45 PM, Tien Hung Nguyen wrote: > Hello everyone, > > I'm having a Spring Boot Rest Microservice and I'm trying to pull some > information with a Rest call from my Jenkins Server, which is running in an > OpenShift pod (based on the default