Kentico - Profile picture of user from facebook Web part - kentico

I am using Kentico built in web part "Facebook Connect Logon" on my website. I have made all the required settings for facebook in Settings application.
I have provided all the token access in the developers facebook account for the application.
The functionality is working fine, I just want to know is it possible to get the profile picture of the user from their facebook account and use it on my website?
Any help will be greatly appreciated.

You can use the format specified for the Facebook user image in their API.
{user-id}/picture
Then use the type parameter to customise the size.

Related

AADSTS90014: The required field 'request' is missing from the credential

I have given ClientID and TanentID (from my organization, i cannot share it) to use in NodeJS application that will ask me to sign in with email and password, when i run the application microsoft Login window appears and i enter my own email and password. but in return Microsoft is saying the following AADSTS90014: The required field 'request' is missing from the credential. Ensure that you have all the necessary parameters for the login request.
Where in need to add the field 'request'. DO i have to contact my admin to grant me admin access or is there something in need to fix in my code.
Single page application (e.g Angular). if the authentication platform they have added as SPA then you need to create SPA (Single Page Application) with angular.
for demo purpose:
create dummy azure account.
register an application.
select that registered application
under Manage>Authentication>Add Platform
you will see 5 options as following:
WEB, Signle Page Application, iOS/MacOS, Android, Mobile and desktop application.
Your admin has added SPA as Authentication platform.
You can get the tutorial from Official link of MicroSoft Tutorial

Authenticate user using MSAL.js (v2) in Salesforce custom component

We have created lightning component in salesforce for Sharepoint which allows operations like view, download and update. We have implemented SSO between Salesforce and SharePoint Online using Microsoft Azure Active Directory. We have setup Azure Active Directory application for Graph to access data of SharePoint Online.
To communicate with Sharepoint online, access token of user need to be passed with Sharepoint Graph api. We can get access token using MSAL.js (v2) provided by Microsoft.
But when I am calling msal.acquireTokenPopup(), lightning component does not open microsoft login popup showing error - "SecureWindow.open supports http:, https:, mailto: schemes and relative urls.Failing descriptor: {markup://c:SharepointWidgetUsingGraph}".
I request if anybody can help me out and let me know where I am going wrong.
I had this same issue. My solution was to use a combination of LWC and visualforce to overcome the locker service issues. Here's a working example: https://github.com/rwegner7/salesforce-azure-pkce

Getting profile information with Google Sign-In on web app hosted on Azure?

I have a web app hosted on Azure for which I have enabled Google Sign-In under Authentication / Authorisation section of the settings of the app. I have tested it the app and can access it after signing in with my Google account - verified with couple of users, authentication works.
Next, I want to do authorization where I need to know the email of the logged in user - how can access the profile info of a user?
Documentation I have read so far:
To configure Google Sign-In I have used this documentationf rom
Azure.
To create the sign in API credentials(client id and secret), I have
used this documentation from Google. I am using OAuth2 and have
set the type to Web Application.
I have done some research and I found out that I could get profile
info using this example shown on the google documentation, but
that is given I am implementing the Sign-In UI and code which comes
with it, but in my case I have configured that in Azure and is an
in-built feature.
Is there any way, I can access user profile information (email in my case) on the application without changing the authentication method keep using Azure's in built feature to add Google sign-In?
After some more research, I found that Microsoft provides some documentation on this and can be found here.
More specifically, the email adress of the signed in user, which I was after can be fetched from header X-MS-CLIENT-PRINCIPAL-NAME.

Can't create Google oAuth clientId becuase of the consent screen

I'm trying to get Google oAuth clientId but it says:
To create an OAuth client ID, you must first set a product name on the consent screen
So, when I click on Configure Consent Screen:
In my app, I'm using passport.js and google's oAuth20.My app can let anyone log in with a google account. And for that I need the clientId.
But it says to choose Internal and External option. I don't know what's this. The consent screen was not there before.
What do I do?
The consent screen is primarily used by Google to understand your application. Internal means within organization and external refers to any user. So whenever you setup your application for the first time, Google wants to understand who you are building this application for.Just follow this link for the entire Oauth setup procedure

Office365 SSO for WebAPI based applications

I've been developing an WebAPI based application with token based authentication implemented and Using angularJs 1.6 as front-end. Requirement is to provide SSO for office365 without navigating user to microsoft login page for consent when user in signed in to application using login page of dashboard. Currently I'm not able to find any way to do that. Kindly guide me in accomplishing that. In my dashboard I'll provide link for any microsoft service. Let's say OutLook. When the user clicks on that link it will open up in new tab. I've been able to accomplish that using SMART LINKS. But for now user need to authenticate again on microsoft's login page.
Kindly help me in accomplishing SSO for that.

Resources