Yammer deeplink from user authenticated with ADAL on Microsoft graph - deep-linking

We have an Android Application using Adal authentication to access Microsoft Graph Api.
It's working quite fine and we retrieve authenticated user profile and collaborators profiles (https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user).
Now, we are looking to create a deeplink from our application to Yammer application to display user details using the "Link to user" deeplink : https://developer.yammer.com/docs/ios-and-android
The issue is : user id returned by Microsoft Graph can't be used to access User page in yammer app (ids are not the same between both platforms which seems quite normal)
So, how can I link a user from Microsoft Graph to a user in Yammer.
Thanks !

Related

3rd party authentication flow on Microsoft Teams App

I'm trying to achieve some results similar to what Asana App on Microsoft Teams has, when you paste a link from Asana their app/bot process the link and return a preview (link unfurling) but before that the app ask to login or sign up.
I'd like to develop the same authentication flow, get my user to login on my application from a PopUp on Microsoft Teams and only present cards and everything else after that. (asana is not using login with azure active directory)
Is there a way to send a token from my application and store on the Microsoft Teams user and then validate this token on my bot/app that will process the message and interact with my users?
Example of the results I'd like to achieve.

iOS application authorization to Facebook Workplace

I'm making an iOS application, that needs integration with Facebook Workplace for users can manage their private data (messages, posts, etc).
As I understand I need an app inside admin panel to be created, set up permissions for it, generate app access token for API calls.
With the token we can fetch information about groups and members existing in community. We can fetch information about specific member groups with member access token (impersonate token), which we can get with user id.
We need an authorization to get the user id. We can login to Facebook with iOS SDK, but facebook login and facebook workplace login are two different entities. I couldn't find anything about authorization in Facebook Workplace.
Is it possible at all? I think it should be, because this page exists and all API calls require some code and token that had to be somehow retrieved previously: https://developers.facebook.com/docs/workplace/reference/account-management-api

Any way to access resource from ADAL.NET Library (native apps) on a web browser without having to do login activity again?

I am currently creating Universal Windows App (native) that uses Microsoft Graph API. For authentication, I used ADAL for .NET library by calling GetTokenAsync() on the AuthenticationContext (https://github.com/AzureAD/azure-activedirectory-library-for-dotnet). The library will automatically prompt a login window for the user to enter its credentials.
Later I was required to open a OneNote URL on a web browser. I managed to get the note URL from the Microsoft Graph API (OneNote API) and then I realized when I tried to open the URL on a browser I was redirected to the Microsoft login page (http://login.microsoftonline.com).
This is not very good for user experience because they needed to enter their credentials twice (on the ADAL prompt window and on the browser). Is there any way whatsoever so that the user can do the login activity only once?
User needs to enter their creds on Microsoft online website but not twice. please debug the app and store this context ticket so you can use it in your win universial app. by the way, make sure that you are not pointing your app to two different api endpoints. go with the Microsoft graph api endpoint but not any other legacy endpoint for your app. Hope this helps.

How to receive user information when user is authenticated with Google Adwords OAuth

I'm building a web application with the google adwords API (ASP.NET Client library v14.5.0).
I'm using the builtin OAuth libraries to authenticate a user. Everything is working fine, but now I want to get user information, such as emailaddress and name from the user thats logged in.
Does somebody knows how this works?
Thanks!
Patrick
AdWords API doesn't provide this information, you could try getting the User profile information instead. See https://developers.google.com/accounts/docs/OAuth2Login#userinfocall for details.

RPXnow Facebook Connect - Use and Level of support?

I am using RPXnow.com authentication solution for a rails app and am now at the point of wanting to develop Facebook integration features using Facebook Connect and the client api. What I am unclear on from RPXnow docs is the level of integration their solution provides. When a user connects via rpx using their FB creds, are they now using Facebook Connect? Can I make calls to the client api from my app? Do I need to use the RPX api to access the FB client APIs?
Anyone with experience using both who can shed light here, much appreciated.
dnewman,
Great question. Facebook Connect is simply a javascript layer built on top of the Facebook Platform APIs. RPX uses the platform APIs to authenticate the user, and after they have signed in, you may safely use the native Facebook Connect javascript to implement FB specific features on your site like posting activity back to the News Feed. You just need to set your connect URL on the facebook developer site and drop in the Facebook Connect javascript and then start implementing. After authenticating via RPX, the user will already have approved and "connected" to your website, and you'll have access to the breadth of Connect directly.
Also, if you have an RPX Plus/Pro account you can make simple RPX API calls to set a user's status and post activity on Facebook (and Twitter/MySpace).
Brian Ellin
RPX Product Manager
Once you've hooked up RPXNow (JanRain) single sign-on, you can follow the Facebook documentation. The Server-side Personalization example is in PHP but the idea is the same in any language.
// Fetch the user's friends
$friends = json_decode(file_get_contents(
'https://graph.facebook.com/me/friends?access_token=' .
$cookie['oauth_access_token']), true);
$friend_ids = array_keys($friends);
The key point to note is that the $cookie['oauth_access_token'] referenced in this example needs to be the string returned by the RPXNow sign-on API response in the JSON field
['accessCredentials']['accessToken']
Hint: from your RPXNow dashboard, check out the Test Sign-In Widget page under Resources to see where that token is in the response.
Initially I thought this would be hampered by having your Base Domain set to rpxnow.com in your Facebook Application settings, but this is not the case. It works fine.

Resources