Howdy everyone, I have a question on OAuth2.0 impl...
# ktor
k
Howdy everyone, I have a question on OAuth2.0 implementation using the Bearer authentication on the browser. So while going through the ktor documentation's bearer-client, in part 5, it talks about how to make a request to a protected resource after getting an authorization code (as can be seen from the screenshot, or clicking the link). However, the code snippet for doing so only shows:
while(true){ }
and I believe that's not how to get the response object. So just to clarify, will this code snippet work
val response: HttpResponse = client.get("<https://www.googleapis.com/oauth2/v2/userinfo>")
for requesting the protected resource from Google API? or will I have to add some more to get the response object that is then used to obtain the userInfo.
a
That should be enough.