single-sign-on-azure-b2c
Reactive icon

Single Sign On - Azure B2C

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 22 November 2023
 by 
0.0
 (0 ratings)
single-sign-on-azure-b2c

Single Sign On - Azure B2C

Details
This asset provides functionality to log in users using Microsoft credentials. To utilize this asset, developers need to create an app in the Microsoft Azure Portal and set the necessary parameters in the site properties and the API call location to fulfill the basic requirements.
Read more

Single Sign On - Azure B2C

Single Sign On - Azure B2C is developed for Single Sign On functionality. In this forge component we are using Microsoft's rest APIs for sign in process and for getting all the information related to the user. In this component we used site properties for assigning the value of Client_Id, Client_Secret , Grant_Type, Response_Mode, Scope, State, Redirect_Url, so any user can change it according to their need directly from service center. They do not need to make any changes to the application.

Below are the actions used for developing this forge component.

Screen Actions -

  • OnInitialize – This action is used to call all the required actions and JavaScript's on the time of screen loading.

Server Actions -

  • GetAzureB2cURL – This action is for getting the code from the URL. In this application we use AzureB2cURL site property to get the URL of any registered application. User only needs to define the URL in the site property once.
  • Get_Required_Parameters – This action is for getting the values for the parameters like Client_Id, Client_Secret, Grant_Type, Redirect_Url, Response_Mode, Scope, State. Site properties are also used to get these parameters values as per needed. The names of the site property are Client_Id, Client_Secret, Grant_Type, Redirect_Url, Response_Mode, Scope, State. So, you can assign and change their values as your requirement.
  • LoginUser – This is used to login user through Microsoft login. If the user login through Microsoft, then it will create this user also in Outsystems users and logged into Outsystems.

 

In Service Module -

Rest API - 

  • LoginWithMicrosoft – Used to login user through Microsoft. After loading url it gets the code n the url that is provided by azure application to authorized user and this code is used to get token
  • GetLoggedInUserInfo – Used to get information about logged in users. It used the token and get the logged in user information in the response


Azure Portal configuration

To login using Microsoft credentials, create an app in the Azure portal for login functionality and obtain the necessary permissions. Copy the app details into the site properties and into the API call location in Service Studio after downloading to use SSo features.



Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category