Thursday, 14 April 2016

Manage the users in jenkins

Manage  users in jenkins :

1) go to jenkins page
2) go to "configure global security"
3) go to authorization select the option "Matrix-based security"
if no user is added, add the user/group and define access level of user/group like
a) be admin
b)  manage domains
c) slave
d) jobs
e) run and view
4) to check if new user is added or not
a) go to jenkins home page.
b) click on people
c) see the user.



Wednesday, 13 April 2016

security configuraton in jenkins

security configuraton in jenkins

1) click on manage jenkins

2) From the list of option choose "Configure Global Security".
this will allow user Secure "Jenkins" and  define who is allowed to access/use the system.

3) Click on Enable security
(If enabled, you have to login with a username and a password that has the "admin" role before changing the configuration)
options :
a) TCP port for JNLP slave agents
a.1) Jenkins uses a TCP port to communicate with slave agents launched via JNLP
a.2) Alternatively, you can specify the fixed port number so that you can configure your firewall accordingly.
a.3) Disable remember me : Select this option to remove the “Remember me on this computer” checkbox from the login screen.

4) Access Control
4.1) Security Realm
options :
a) Delegate to servlet container :  Use the servlet container to authenticate users, as per defined by the servlet spec.
b)  Jenkins’ own user database : Use Jenkins's own user list for authentication, instead of delegating that to an external system. for small system .
c)  LDAP :

5) Authorization
a) Anyone can do anything :
b) legacy mode
c) Logged-in users can do anything
d) Matrix-based security : In this scheme, you can configure who can do what by using a big table.
e) Project-based Matrix Authorization Strategy
(This allows you to say things like "Joe can access project A, B, and C but he can't see D." See the help of "Matrix-based security" for the concept of matrix-based security in general. ACLs are additive, so the access rights granted below will be effective for all the projects.)

6)
click on save  and will be redirected to signup page, provide the details and login


Getting started with Facebook oauth2 api using postman

Facebook oauth2/

go the facebook developer
URL : https://developers.facebook.com/
Login/register
Register as facebook developer and click on basic setup

a) Create a New App ID  by providing the basic details and submit
b) get the appid , api version, app secret, Client Token
c) Enter the above details in postman client.
c.1) auth URL : https://graph.facebook.com/oauth/authorize
c.2) Access Token URL : https://graph.facebook.com/oauth/access_token
c.3) client id : "facebook App ID"
c.4) client secret : "facebook app secret "

d) You will be redirected to linked page
Authenticating the LinkedIn Account
enter the credentails and allow access

to access basic profile of the user

ex :  https://graph.facebook.com/me?access_token="genrated token"

append genrated token.

e) weill be able to see basic user details as response

Tuesday, 12 April 2016


Getting started with linkedin api using postman

1) Create an application on linkedin
url : https://www.linkedin.com/secure/developer?newapp=

2) provide the details OAuth 2.0
Authorized Redirect URLs for postman :
URL : https://www.getpostman.com/oauth2/callback

REF : postman helpers (https://www.getpostman.com/docs/helpers)
 

3) Get the Authentication Keys.
a) Client ID:
b) Client Secret:

4) start the postman client
a) go to authorization select the OAuth 2 fill the following

Auth URL :  https://www.linkedin.com/uas/oauth2/authorization
Access Token URL :  https://www.linkedin.com/uas/oauth2/accessToken
Client ID : "provide the genrated client id"
Client Secret : "provide the genrated client secret"
Scope : r_basicprofile
Token Name : TokenName
Grant Type :  Authorization code

and click on : request access token locally

5) now click on Request token

6) You will be redirected to linked page
Authenticating the LinkedIn Account
enter the credentails and allow access

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child container failed during start

solution : clean the tomcat server on eclipse and restart the server.


Monday, 11 April 2016

Find the folder in ubuntu.

"find" is the command to find the folder or directory.

ex : find / -name "voice"
Jenkins installation on redhat for aws

REF  : wiki.jenkins-ci.org