Coder Social home page Coder Social logo

Comments (6)

rhishikeshj avatar rhishikeshj commented on August 11, 2024

Thanks for pointing this out Trevor.
I ll definitely take a look and make sure I improve the API.

from xamarin.googleauth.

sanjogs avatar sanjogs commented on August 11, 2024

@trevoriancox To get the ServerAuthCode on iOS, Where do we configure SignInOptions for GoogleSignIn?

from xamarin.googleauth.

rhishikeshj avatar rhishikeshj commented on August 11, 2024

Hi @trevoriancox,
Thank you for raising this issue.
I have updated the Android code for the plugin and it now follows the new Authentication mechanism which Google recommends.

Regarding the ServerAuthCode and IdToken APIs :

According to the Google documents on Sign-in integration here : https://developers.google.com/identity/sign-in/ios/backend-auth and https://developers.google.com/identity/sign-in/android/backend-auth, the recommendation is to use the IdToken for authentication on the backend server.
Can you please let me know why IdToken will not work for your backend server authentication ?

from xamarin.googleauth.

rhishikeshj avatar rhishikeshj commented on August 11, 2024

Fixed here : 9b89b8b

from xamarin.googleauth.

trevoriancox avatar trevoriancox commented on August 11, 2024

@rhishikeshj You are right, thank you for pointing that out! I do only need id_token for my application. This also avoids asking the user for the unneeded "offline" permission.

from xamarin.googleauth.

reesesm2000 avatar reesesm2000 commented on August 11, 2024

Reopening this thread. What I need is to get a serverAuthCode from the OAuth2 flow. This means that not only will a token be returned but also a code that can be sent from the client to the backend server. This allows the server to convert that code into a token/refresh token for itself to use when contacting the Google servers without the user using the app.
See this link for more details.
https://developers.google.com/identity/sign-in/ios/offline-access
Would be great for this to be part of the Xamarin.Auth library.

from xamarin.googleauth.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.