Implementing Google OAuth2 in Xamarin for Google Classrooms - xamarin

Any idea when a Google Classroom library wil be available for Xamarin? I have tried the .NET and Android library, but the GoogleWebAuthorizationBroker and FileDataStore does not exist, and Xamarin doesn't cater for "urn:ietf:wg:oauth:2.0:oob" as a redirect url when authenticating with Google Api (OAuth 2). Is there a workaround that anyone know of?

We are unlikely to build any library specifically for Xamarin. The details of our OAuth2 endpoints are publicly available, so it is in theory possible for you to develop your own implementation.

Related

Google Pay CRYPTOGRAM_3DS integration for websites

I am trying to integrate Google Pay into one of our websites. If I provide only CRYPTOGRAM_3DS as an authentication option, the Google Pay button is not getting displayed in Desktop Chrome and even in Android Chrome also. I have read that CRYPTOGRAM_3DS is used for the cards that got stored in Android device as tokens. Does that mean that I have to use CRYPTOGRAM_3DS only for Android app integration or will it work for web integration also? I really want to understand when we have to use CRYPTOGRAM_3DS as an authentication method for Google Pay integration. If it supports for web integration, what are the things that I need to do to really see the Google Pay button with only CRYPTOGRAM_3DS as authentication option?
I have read that CRYPTOGRAM_3DS is used for the cards that got stored in android device as tokens.
This is correct, CRYPTOGRAM_3DS is only available for cards tokenized using Google Pay. This means that it is only available on Android for both web and Android integrations on an Android device.
Can you include a sample integration with sample code?

Okta in React Native on IOS 10

Has anyone worked with Okta from React native, and successfully implemented?
We've got a web app that has implemented the okta widget successfully, but the react native app needs to use the lower level api.
From my understanding, the widget doesnt work with ios 10
We implemented the 'resource owner' flow from the BE api, but that created a dependency and now blocks the FE, since the okta api has so many functions.
It seems like a rabbit hole with wrapping the okta apis.
Any thoughts?
There are other open questions like this that make me nervous - React Native Okta SSO 403 .
update
I really don't like the idea of creating BE endpoints to wrap the okta endpoints for the front end, using the resource-owner flow. It feels really hacky and not maintainable.
We found this mentioned in the oidc library - https://github.com/okta/okta-oidc-ios#handle-the-redirect
I've asked the RN developer to try this or some other lower level library to implement it, since the discussion is all theoretical until he writes some code =\
update
The RN developer said he was able to build for iOS 10 - I'm not sure exactly which library he is using. But I'll post an official answer here when I get more detail.

Client flow login for Xamarin?

I am looking for sdk that can help me do the client flow login in my Xamarin app(shared assets with forms UI) for Facebook and LinkedIn for iOS and android. I've got it working using Xamarin.Auth server flow but having hard time in client flow.
For facebook, I tried Xamarin Android Facebook, Xamarin iOS Facebook and cross platform facebook sdk by outercurve foundation. The official xamarin facebook sdk's are in very bad shape, don't work and no documentation has been provided as well. I couldn't find any for LinkedIn though.
My main objective is to use facebook and linkedin app to do the authentication to provide better user experience.
Eventually worked with official Xamarin Facebook SDK's for facebook for android and iOS. This blog post from James Montemagno came in handy.
Take a look at Auth0. They have a reasonable SDK and they support a large number of different Social Authentication providers including Facebook and LinkedIn. Their authentication service isn't free once you reach critical mass, but it's great to have the whole authentication aspect handled for you. Check it out at http://www.auth0.com

The Google Admin SDK Email Settings API is not listed in the APIs Discovery Service

In working with the .NET client library we found that the Email Settings API was not available in it or any of the other client libraries. After communicating with the developers of the .NET library on how the library is generated we noticed that the Email Settings API is not listed in the API discovery service as part of the Admin SDK. The .NET client library relies on the discovery document as does the PHP client. Both the Directory API and the Reports API are.
I noticed that in the documentation for the Email Settings API that calls are still made to apps-apis.google.com:
https://apps-apis.google.com/a/feeds/emailsettings/2.0/
rather than to www.googleapis.com like the other Admin SDK APIs do:
https://www.googleapis.com/admin/directory/v1/
https://www.googleapis.com/groups/v1/groups/
https://www.googleapis.com/admin/reports/
I'm guessing that this is the underlying reason for why this particular API is not included. Is there a timetable for getting the Email Settings API moved to the googleapis service?
There are two types of Google APIs. Gdata APIs and discovery APIs.
The Gdata APIs are old APIs a lot of them have actually been shut down. The client libraries for them to my knowledge where not auto generated.
if you check the documentation for the email settings api there is some sample code for .net.
using Google.GData.Apps.GoogleMailSettings;
The key here is that its a Gdata, its a Gdata api. Which means that like you said its not supported by the current Google .net client library which only supports discovery APIs.
After doing some searching in the code for the Gdata client library. Yes it exists but it hasn't been developed on in ages. There is some code in there for Google email settings There should be a nuget package for it but I have not been able to find it.
The only thing that i have cound that might lead us to the corect nuget package is this
Install-Package Google.GData.Apps
I don't have an admin account so I cant help you test it. However I can probably give you some hints on getting it working. You should be able to track me down from my stack profile if you need help or just post another question on stack. I should spot it.

A Google API to know which services are enabled?

I'm looking for a Google API call to know which services (Gmail in my case) are enabled for an organization or for a user.
The question has been asked without answer there : Google API for Google Services
Thanks!
If this existed, it would likely be in the Admin SDK rather than the Gmail API. That being said, I've never seen this and wasn't able to find any hint of it within the specific APIs within the SDK (would likely be in the Admin Settings API).
I am pretty sure this isn't possible via API currently.

Resources