Google oauth2.0 api login_hint not working - google-authentication

Google OAuth2.0 api login_hint not working.
I already read Use login_hint to pre-fill email box for Google oAuth2.
But it does not work.
You can try below link in Chrome or IE. Thanks.
https://accounts.google.com/o/oauth2/auth?scope=https%3a%2f%2fwww.googleapis.com%2fauth%2fyoutube+https%3a%2f%2fwww.googleapis.com%2fauth%2fyoutube.force-ssl+https%3a%2f%2fwww.googleapis.com%2fauth%2fyoutube.readonly+https%3a%2f%2fwww.googleapis.com%2fauth%2fyoutubepartner+https%3a%2f%2fwww.googleapis.com%2fauth%2fyoutubepartner-channel-audit&redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&response_type=code&client_id=212374846644-1t0rrjglnumal7mgmlupor0dtrrtq8df.apps.googleusercontent.com&login_hint=aabb#test.com

Related

Integrating Social Login with Instagram basic display api

While reading instagram basic display api documentation I get the sense that we cannot use this api for authentication. As they write under the limitation as:
Authentication — Instagram Basic Display is not an authentication
solution. Data returned by the API cannot be used to authenticate your
app users or log them into your app. If you need an authentication
solution we recommend using Facebook Login instead.
But looking at their API reference I get they provide oauth tokens and authentication flow /scopes.
Their getting started guide also list down steps to setup app. Anyone please explain what I am missing there ? I am looking for social login solution using instagram, thanks.

How to achieve silent login and get code/token from google using OAuth 2

I am new to google oath ,
Referring to the documentation of google
While i Generate the login URL
example
https://accounts.google.com/o/oauth2/auth?
redirect_uri=http://www.mywebapp.com/oauth2callback&
response_type=code&
client_id=104608secret-secret-secret-secret.apps.googleusercontent.com&
scope=https://www.googleapis.com/auth/analytics.readonly+https://www.googleapis.com/auth/userinfo.email&
approval_prompt=force&
access_type=offline
This redirects to an accept page showing google email Id
When the user clicks on “Accept” google will redirect the user to your given redirect_url
when i use chrome and
https://developers.google.com/oauthplayground/
Because it redirects screen to accept.
everything will work fine.
But when i use postman it wont return the "access code" of google
What am i making wrong in the url parameters .
I have to create rest service using the above url.
I have searched So for
How to get dummy google access token to test oauth google api?
How can I verify a Google authentication API access token?
https://developers.google.com/identity/protocols/OAuth2
https://www.themarketingtechnologist.co/google-oauth-2-enable-your-application-to-access-data-from-a-google-user/
But non explained about silent login to get token without accept screen
Your callback url receives a "code".
Then you need to exchange your "code" for an access token.
https://aaronparecki.com/oauth-2-simplified/
https://developers.google.com/oauthplayground/
https://developers.google.com/identity/protocols/oauth2

Identity Providers with Xamarin Forms and Azure

I'm a bit confused about Identity Providers in a project I'm doing with Xamarin Forms.
I configured Facebook as an IP with Azure Mobile Apps following this page
https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-how-to-configure-facebook-authentication
It works, but my doubt is, how can I use the MobileServiceUser result of the authentication process to, for example, post to Facebook or get personal information from Facebook. Is this possible?
Thanks!
This is how I think about it.
Identity providers are used to provide a third party guarantee of WHO a user is.
The Mobile SDK lets you do Authorization. So you can decide WHAT the user can do on YOUR service after you know WHO they are.
Any thing you are doing via facebook would still need to be done through the Facebook API/SDK using the token their Authentication process returned to you.
Finally I found the solution to my problem.
What I was trying to do is get information from Facebook after I have authenticated myself.
All I had to do was invoke
await client.InvokeApiAsync("/.auth/me");
After authentication and thats all, the response of that request has the token to access the Facebook API. These tokens are saved in Azure.
For more information:
https://cgillum.tech/2016/03/07/app-service-token-store/
Thanks!

Google Analytics API: What is the ´YOUR_OAUTH_ACCESS_TOKEN´?

Yes, what is it and where does it go? I see examples like:
For example, the following example shows the request and the collection returned in the response:
GET https://www.googleapis.com/analytics/v3/management/accounts
Authorization: /* YOUR_OAUTH_ACCESS_TOKEN */
From http://code.google.com/intl/es-ES/apis/analytics/docs/mgmt/v3/mgmtRest.html
I'm completely lost here! How am I supposed to input the access token there? And what is it? My google API password?
Take a look here for more information on using OAuth with Google services.
Update: this article provides step-by-step instructions for calling GA API.
You have to exchange the code for the access token OR, if you are trying to get it, the refresh token.
Then you call the google api of choice with either the access token or the refresh token.
See the following tutorials:
Authenticating with OAuth 2.0 for Google API Access with PHP
Google API Requests with OAuth 2.0 Access Token
Google API Offline Access Using OAuth 2.0 Refresh Token

Publishing to facebook from WP7

I'm looking to publish information from my WP7 app to the user's Facebook wall. I've been scouring the internet but I can't find any help.
Does anybody know how to get the user logged in and post a status? I'd also like to know how to post a detailed status, say an image and text at the same time. Is this possible?
I wrote an open source Facebook login control for WP7 that makes it pretty easy to get an auth token from a user. The github project has an example. Once you get an auth token, you can then do an HTTP POST to /me/feed with that auth token. The WP7 example in the Facebook C# SDK does this (and also has code to do the oauth login).