oauth2
oauth2 copied to clipboard
http2 or TLS support
I have been playing around with the provided example. However, I'm trying to implement it using http2 and tls. It doesn't work when its about to request the access token through the 'allow button' which we will pass through to https://localhost:9096/auth endpoint.
And then I got the response just like below, Post https://localhost:9096/token: x509: certificate signed by unknown authority
I am purely using the example source code and addition of http2 configuration server as well as TLS certificate.
Have anyone ever done that before?
Are you using a self-signed certificate for host "localhost"? "x509: certificate signed by unknown authority" indicates your certificate ca is not trusted by your http client. Https with certificate signed by letsencrypt is working well for me.
Yep, im using localhost self-signed certificate.
Thats what im asking. how to use it into this framework
Just let client trust your cert.