SlideShare a Scribd company logo
Facebook SSO Integration with Mendix
This blog will explain about social login benefits and how we can implement Sign In using Facebook on our Mendix app.
There are more than 1 million websites or apps are using "SignIn with Facebook" or "Login with Facebook". Do you know why they are
using Facebook login and how it is beneficial in conversion?
According to multiple surveys, there are more than 3 billion users worldwide are using social media and it is around 50% of the world's
population.
The biggest challenge and most important things are to make user registration and login quick and easy while developing our application. The
registration forms required a lot of data that need to be filled by users manually and it causes lost, potential users.
Additionally, users need to enter their usernames/emails and passwords in the login forms to authenticate themselves and also need to remember
more individual IDs and passwords.
Social Login allows customers to bring their existing social identities and use them to register and log in without creating a new profile
explicitly.
Facebook is the most favourite social media provider in comparison to other social media providers and the number of active Facebook users
growing day by day.
In this blog, I will explain how you can implement “Log in with Facebook” on your Mendix Application or mobile app in a very easy manner.
Facebook work on the OAuth 2.0 protocol and most of the social providers like Facebook, Google, Microsoft, LinkedIn are supporting OAuth
2.0.
What do we need?
Check that you have everything you need before we begin. Make sure your Facebook cloud platform account has been created.
Additionally, your Mendix App has to include a few marketplace modules:
 Community Commons
 Encryption
 Nanoflow Commons
 OIDC Module
Getting started
Create Your Facebook Login App
Here you can find the complete step by step guide to create your Facebook Login App.
Step 1
Go to Facebook Developer and log in using your Facebook credentials.
NOTE: Please do not log in using a business account as Facebook will not allow you to create an app if you do so.
Step 2
Select the My Apps as displayed on the below screen.
Step 3
Click on Add a New App as displayed in the below screen.
Step 4
Input display name and contact email. Once you have done so, click on Create App ID
Step 5
In the security check, Complete the security steps and click on the submit button.
Step 6
Once you land on the App dashboard, Select Facebook Login, and click Set Up.
Step 7
Click on Settings in the sidebar under Facebook Login. Turn on Client OAuth Login. Turn on Web OAuth Login. Put the valid redirect URL
on "Valid OAuth redirect URIs". Click on the Save button.
Step 8
Click on Basic under settings in the sidebar. Under App, Domains include your website Url. Enter all the required details. Change the status of
the app from Development to Live from the top-right corner. Click on the Save Changes button.
Note down the App-id and App secret.
Now your Facebook app is ready. You can start implementing Facebook login
Data Selection
When a user logs into your website or app via Facebook Login, you can access the user's data stored on Facebook. Facebook only allows the
basic profile data permissions for a new Facebook app. To get more data according to your business requirement, you need to enable additional
permissions on your Facebook app. Facebook is supporting around 42 permissions. You need to choose user data that you want to collect from
Facebook.
Submit Your Facebook Login App for Review
To grab more than basic profile data points or asking for additional permissions from your users, your Facebook apps go through the review
process. Sometimes businesses require some additional permissions on the Facebook app and for that, you need to submit your Facebook app for
approval before starting to ask for additional information.
The Facebook app review process is pretty much simple, Please refer to this document here for the Facebook App Review Process.
Let’s come back to the Mendix
In Studio Pro
Now for the Mendix section of this build! In order to ensure anonymous user’s can access the required pages, we need to ensure our app is configured to
have security on and also to allow anonymous user’s access. For this we will need a Guest user role which we can select as the anonymous user.
Also make sure your Guest user role is assigned to the OIDC module as the Anonymous module role, as well as the Admin needs to be assigned the
Administrator user role for the same OIDC module.
We must also enable the user to access the sign-in page now that security and user roles have been configured. Add a role-based home page for guests in
your projects' Navigation.
You may do this by choosing the OIDC module's "OIDC.Login Web Button" page. Additionally, provide a role based home page for the User.
Add a page OIDC_Client_Overview and make sure Admin have access to it.
Run your app locally, and login as a admin. Navigate to the OIDC Client Overview page. Click on new to create a new config.
Fill in the Alias as Facebook (You can use any name for your reference).
Enter your client ID and set the status too Active. Most importantly, you need to add the automatic config URL for google
(https://www.facebook.com/.well-known/openid-configuration) and click “Import configuration”. This will automatically populate the few fields.
If it’s hard to zoom into the input fields. Find it here.
Alias Name: Facebook
Client ID: {Your client id}
Client Assertion: Client I D and Secret
Active: Yes
Use PKCE: Yes
Endpoint URLs
Automatic configuration URL: https://www.facebook.com/.well-known/openid-configuration
Authorization endpoint: https://www.facebook.com/dialog/oauth
Token endpoint: https://graph.facebook.com/v2.8/oauth/access_token
User info endpoint: https://graph.facebook.com/v14.0/oauth/access_token?me?fields=id,name,birthday,email
JWKS uri: https://www.facebook.com/.well-known/oauth/openid/jwks/
Issuer: https://www.facebook.com
Custom call-back URL: https://contentmanagement103-sandbox.mxapps.io/oauth/v2/callback
Testing the login
When a guest user lands on your site, they will now see the following page, the user should click “Log in via SSO”
Next, they will see this screen which prompts the user to select the google account they would like to login with.
If you configuration is successful, the user should land on the home page as an authenticated user. In order to be sure this setup was working I added a data
view to the home page which returns the logged in user’s account, and I displayed the $Account/Full Name attribute using a label.

More Related Content

Similar to Facebook SSO.docx

Facebook Coin
Facebook CoinFacebook Coin
Facebook Coinnithiya
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extension
Ketan Raval
 
Facebook Social Plugins
Facebook Social PluginsFacebook Social Plugins
Facebook Social PluginsAizat Faiz
 
Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
Sanjeet Pandey
 
Green Hectares Rural Tech Factsheet – Facebook
Green Hectares Rural Tech Factsheet – FacebookGreen Hectares Rural Tech Factsheet – Facebook
Green Hectares Rural Tech Factsheet – Facebook
Green Hectares
 
2019 ottobre 28 english gdoox personal profile
2019 ottobre 28 english gdoox personal profile2019 ottobre 28 english gdoox personal profile
2019 ottobre 28 english gdoox personal profile
Daniel Rueda H
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
Katy Slemon
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
Pragati Singh
 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook app
OS-Cubed, Inc.
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
D.Rajesh Kumar
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
D.Rajesh Kumar
 
Web 2 0 Search Engine Optimization Manual
Web 2 0 Search Engine Optimization ManualWeb 2 0 Search Engine Optimization Manual
Web 2 0 Search Engine Optimization Manualfemi adi
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platformVenkatesh Narayanan
 
Create Your WebApp Card
Create Your WebApp CardCreate Your WebApp Card
Create Your WebApp Card
dotmobietc
 
5 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 20195 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 2019
Ariba Niaz
 
Magento 2 Social Login
Magento 2 Social LoginMagento 2 Social Login
Magento 2 Social Login
TheMagicians
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2Amit Sharma
 
How to create Zoom Meet with Pega
How to create Zoom Meet with PegaHow to create Zoom Meet with Pega
How to create Zoom Meet with Pega
SamuelJude1
 

Similar to Facebook SSO.docx (20)

Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Introductution to social connect Magento extension
Introductution to social connect Magento extensionIntroductution to social connect Magento extension
Introductution to social connect Magento extension
 
Facebook Social Plugins
Facebook Social PluginsFacebook Social Plugins
Facebook Social Plugins
 
Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
 
Green Hectares Rural Tech Factsheet – Facebook
Green Hectares Rural Tech Factsheet – FacebookGreen Hectares Rural Tech Factsheet – Facebook
Green Hectares Rural Tech Factsheet – Facebook
 
2019 ottobre 28 english gdoox personal profile
2019 ottobre 28 english gdoox personal profile2019 ottobre 28 english gdoox personal profile
2019 ottobre 28 english gdoox personal profile
 
FacebookAPIWhitePaper
FacebookAPIWhitePaperFacebookAPIWhitePaper
FacebookAPIWhitePaper
 
FacebookAPIWhitePaper
FacebookAPIWhitePaperFacebookAPIWhitePaper
FacebookAPIWhitePaper
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook app
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Web 2 0 Search Engine Optimization Manual
Web 2 0 Search Engine Optimization ManualWeb 2 0 Search Engine Optimization Manual
Web 2 0 Search Engine Optimization Manual
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
 
Create Your WebApp Card
Create Your WebApp CardCreate Your WebApp Card
Create Your WebApp Card
 
5 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 20195 growth marketing strategies your business needs in 2019
5 growth marketing strategies your business needs in 2019
 
Magento 2 Social Login
Magento 2 Social LoginMagento 2 Social Login
Magento 2 Social Login
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
 
How to create Zoom Meet with Pega
How to create Zoom Meet with PegaHow to create Zoom Meet with Pega
How to create Zoom Meet with Pega
 

Recently uploaded

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 

Recently uploaded (20)

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 

Facebook SSO.docx

  • 1. Facebook SSO Integration with Mendix This blog will explain about social login benefits and how we can implement Sign In using Facebook on our Mendix app. There are more than 1 million websites or apps are using "SignIn with Facebook" or "Login with Facebook". Do you know why they are using Facebook login and how it is beneficial in conversion? According to multiple surveys, there are more than 3 billion users worldwide are using social media and it is around 50% of the world's population.
  • 2. The biggest challenge and most important things are to make user registration and login quick and easy while developing our application. The registration forms required a lot of data that need to be filled by users manually and it causes lost, potential users. Additionally, users need to enter their usernames/emails and passwords in the login forms to authenticate themselves and also need to remember more individual IDs and passwords. Social Login allows customers to bring their existing social identities and use them to register and log in without creating a new profile explicitly. Facebook is the most favourite social media provider in comparison to other social media providers and the number of active Facebook users growing day by day.
  • 3. In this blog, I will explain how you can implement “Log in with Facebook” on your Mendix Application or mobile app in a very easy manner. Facebook work on the OAuth 2.0 protocol and most of the social providers like Facebook, Google, Microsoft, LinkedIn are supporting OAuth 2.0. What do we need? Check that you have everything you need before we begin. Make sure your Facebook cloud platform account has been created. Additionally, your Mendix App has to include a few marketplace modules:  Community Commons  Encryption  Nanoflow Commons  OIDC Module Getting started Create Your Facebook Login App Here you can find the complete step by step guide to create your Facebook Login App. Step 1 Go to Facebook Developer and log in using your Facebook credentials.
  • 4. NOTE: Please do not log in using a business account as Facebook will not allow you to create an app if you do so. Step 2 Select the My Apps as displayed on the below screen.
  • 5. Step 3 Click on Add a New App as displayed in the below screen.
  • 6. Step 4 Input display name and contact email. Once you have done so, click on Create App ID
  • 7. Step 5 In the security check, Complete the security steps and click on the submit button.
  • 8. Step 6 Once you land on the App dashboard, Select Facebook Login, and click Set Up.
  • 9. Step 7 Click on Settings in the sidebar under Facebook Login. Turn on Client OAuth Login. Turn on Web OAuth Login. Put the valid redirect URL on "Valid OAuth redirect URIs". Click on the Save button.
  • 10.
  • 11. Step 8 Click on Basic under settings in the sidebar. Under App, Domains include your website Url. Enter all the required details. Change the status of the app from Development to Live from the top-right corner. Click on the Save Changes button. Note down the App-id and App secret. Now your Facebook app is ready. You can start implementing Facebook login
  • 12. Data Selection When a user logs into your website or app via Facebook Login, you can access the user's data stored on Facebook. Facebook only allows the basic profile data permissions for a new Facebook app. To get more data according to your business requirement, you need to enable additional permissions on your Facebook app. Facebook is supporting around 42 permissions. You need to choose user data that you want to collect from Facebook. Submit Your Facebook Login App for Review To grab more than basic profile data points or asking for additional permissions from your users, your Facebook apps go through the review process. Sometimes businesses require some additional permissions on the Facebook app and for that, you need to submit your Facebook app for approval before starting to ask for additional information. The Facebook app review process is pretty much simple, Please refer to this document here for the Facebook App Review Process. Let’s come back to the Mendix In Studio Pro Now for the Mendix section of this build! In order to ensure anonymous user’s can access the required pages, we need to ensure our app is configured to have security on and also to allow anonymous user’s access. For this we will need a Guest user role which we can select as the anonymous user.
  • 13.
  • 14. Also make sure your Guest user role is assigned to the OIDC module as the Anonymous module role, as well as the Admin needs to be assigned the Administrator user role for the same OIDC module. We must also enable the user to access the sign-in page now that security and user roles have been configured. Add a role-based home page for guests in your projects' Navigation. You may do this by choosing the OIDC module's "OIDC.Login Web Button" page. Additionally, provide a role based home page for the User.
  • 15. Add a page OIDC_Client_Overview and make sure Admin have access to it.
  • 16. Run your app locally, and login as a admin. Navigate to the OIDC Client Overview page. Click on new to create a new config. Fill in the Alias as Facebook (You can use any name for your reference). Enter your client ID and set the status too Active. Most importantly, you need to add the automatic config URL for google (https://www.facebook.com/.well-known/openid-configuration) and click “Import configuration”. This will automatically populate the few fields.
  • 17. If it’s hard to zoom into the input fields. Find it here. Alias Name: Facebook Client ID: {Your client id} Client Assertion: Client I D and Secret Active: Yes Use PKCE: Yes
  • 18. Endpoint URLs Automatic configuration URL: https://www.facebook.com/.well-known/openid-configuration Authorization endpoint: https://www.facebook.com/dialog/oauth Token endpoint: https://graph.facebook.com/v2.8/oauth/access_token User info endpoint: https://graph.facebook.com/v14.0/oauth/access_token?me?fields=id,name,birthday,email JWKS uri: https://www.facebook.com/.well-known/oauth/openid/jwks/ Issuer: https://www.facebook.com Custom call-back URL: https://contentmanagement103-sandbox.mxapps.io/oauth/v2/callback
  • 19. Testing the login When a guest user lands on your site, they will now see the following page, the user should click “Log in via SSO” Next, they will see this screen which prompts the user to select the google account they would like to login with.
  • 20.
  • 21. If you configuration is successful, the user should land on the home page as an authenticated user. In order to be sure this setup was working I added a data view to the home page which returns the logged in user’s account, and I displayed the $Account/Full Name attribute using a label.