You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
Hi all, i have an application nodejs and i have working in authentication whit a remote server Oauth2, this is the function to get a Toke type Bearer, but i dont know how to set a certified.
Result:
code:"UNABLE_TO_VERIFY_LEAF_SIGNATURE"
message:"unable to verify the first certificate"
stack:"Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.EventEmitter.emit (domain.js:448:20)
at TLSSocket._finishInit (_tls_wrap.js:636:8)"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi all, i have an application nodejs and i have working in authentication whit a remote server Oauth2, this is the function to get a Toke type Bearer, but i dont know how to set a certified.
getToken() {
let auth = new ClientOAuth2({
clientId: 'client',
clientSecret: 'secret',
accessTokenUri: 'https://server.com/oauth/token',
scopes: ['write', 'read']
})
return auth .credentials.getToken();
}
Result:
code:"UNABLE_TO_VERIFY_LEAF_SIGNATURE"
message:"unable to verify the first certificate"
stack:"Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket.EventEmitter.emit (domain.js:448:20)
at TLSSocket._finishInit (_tls_wrap.js:636:8)"
The text was updated successfully, but these errors were encountered: