Where to add username password in Oauth 2.0 password grant type.

Rahul115
Tera Contributor

I am trying to find where i can add  username and password  in Oauth 2.0 ( Oauth entity profile) password grant type for third party integration. I know we can add user name and password after selecting Get auth token but its giving error. 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

have a look at this

How to Setup OAuth2 authentication for outbound RESTMessageV2 integrations

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for your suggestion Ankur, when iam trying step 3 (Test tokens generation script to OAuth provider instance 1 (from OAuth consumer instance 2)

I am getting below error, not sure is it something to enable at third party end.

 

Fips: Integration crypto failure protocol=HTTPS javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated callchain=[{http '2022-07-07T06:58:52.722318Z' '11'}, {scoped_script_evaluation '53bdb3361b8f41109d1642eacd4bcb11' '2022-07-07T06:58:52.709437Z' '8'}]
Request not sent to uri= https://xxxxxxxxxxxxxxx

 org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted: Session contains no certificates - Untrusted
Invalid null response.: no thrown error
OAuthProblemException{error='Invalid null response.', description='', uri='null', state='null', scope='null', redirectUri='null', responseStatus=0, parameters={}}
*** Script: AccessToken:null
*** Script: AccessTokenExpiresIn:0
*** Script:  RefreshToken:null

Thanks for your suggestion Ankur, when iam trying step 3 (Test tokens generation script to OAuth provider instance 1 (from OAuth consumer instance 2)

I am getting below error, not sure is it something to enable at third party end.

 

Fips: Integration crypto failure protocol=HTTPS javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated callchain=[{http '2022-07-07T06:58:52.722318Z' '11'}, {scoped_script_evaluation '53bdb3361b8f41109d1642eacd4bcb11' '2022-07-07T06:58:52.709437Z' '8'}]
Request not sent to uri= https://www.xyz.com

 org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted: Session contains no certificates - Untrusted
Invalid null response.: no thrown error
OAuthProblemException{error='Invalid null response.', description='', uri='null', state='null', scope='null', redirectUri='null', responseStatus=0, parameters={}}
*** Script: AccessToken:null
*** Script: AccessTokenExpiresIn:0
*** Script:  RefreshToken:null

pappgergely0
Tera Contributor

Hello,
I am having the same error message, any solutions?
Thanks.