<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thirumalai Kumar R on Medium]]></title>
        <description><![CDATA[Stories by Thirumalai Kumar R on Medium]]></description>
        <link>https://medium.com/@thirumalaiece30?source=rss-ab6c0fe548f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wP618UDIKMXQNi_b</url>
            <title>Stories by Thirumalai Kumar R on Medium</title>
            <link>https://medium.com/@thirumalaiece30?source=rss-ab6c0fe548f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 02:56:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thirumalaiece30/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Publish Content on LinkedIn from your Mendix App -]]></title>
            <link>https://medium.com/mendix/publish-content-on-linkedin-from-your-mendix-app-4017a1024da3?source=rss-ab6c0fe548f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4017a1024da3</guid>
            <category><![CDATA[linkedin]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[mendix]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Thirumalai Kumar R]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 09:50:01 GMT</pubDate>
            <atom:updated>2024-01-12T12:14:30.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWcl1zoTaZObc9YqimHsLA.png" /></figure><h3>Publishing Content on LinkedIn from your Mendix App</h3><h4>In this blog post, we will focus on how to use the <strong>Share on LinkedIn</strong> Product API to publish content from your Mendix application to LinkedIn. This API is available in your LinkedIn developer portal application.</h4><h4>This blog post is a follow-up to my previous post on LinkedIn SSO with Mendix using the OIDC module. In that post, I explained how to set up the LinkedIn developer portal, configure OAuth 2.0 settings, app permissions, and Mendix application settings. If you haven’t read that post yet, I highly recommend doing so to get a better understanding of the setup process.</h4><p><a href="https://medium.com/mendix/linkedin-sso-in-mendix-c561662fb477">LinkedIn SSO in Mendix</a></p><p>Using LinkedIn’s API, you can publish two types of content:</p><ol><li><strong>Post: </strong>You can publish content containing text and images.</li><li><strong>URL Share:</strong> You can publish content containing text and a URL for an image target. When users click on the image, they will be redirected to the target URL.</li></ol><h3>In LinkedIn’s Developer Portal</h3><p>Before you begin developing your Mendix app, it is essential to generate an “<strong>access token</strong>” with the required permissions for LinkedIn’s <a href="https://www.linkedin.com/developers/tools/oauth">OAuth 2.0</a> settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YhrUjjlWdolhU9HMgMS0rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LMNizABSsAwPPOMBtEQt0A.png" /></figure><p>To make this process more efficient, I recommend <strong>creating a new constant</strong> within Mendix and storing the access token in the constant’s default value. Make sure the constant is not exposed to the Client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nveCW7MxE5JrgCcQw7HdKA.png" /></figure><h3><strong>In Mendix Studio Pro</strong></h3><ol><li>First, we need to create a domain model and create the overview pages for <strong>Post </strong>and<strong> URL_Share</strong>. I created a domain model as shown below.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*A9lYuAdcISrVRfbJFxi9EA.png" /></figure><p>2. Create a new post with text, URL, hashtags, and image in Mendix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*ATsH9UntVlBVs3fpr5cOAA.png" /></figure><p>With the save button, <strong>call a new microflow</strong>. In the steps below I shall explain the microflow structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knhTl-m2yJPBxL5M0JLEzw.png" /><figcaption>Post-publish &amp; Update Microflow</figcaption></figure><p><strong>Microflow Steps</strong></p><p>1. Add a decision in flow to check whether a new post or an updated post using the $Edit(boolean) attribute. $Edit by default is set to false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLMFJtVdt2oB2_0ZG5kG4Q.png" /></figure><p>2. In the decision false out, call a new sub-microflow to get the user’s profile details from LinkedIn. In that flow, add a REST Call and add the below detail in that REST call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbXaldx3y12ZoWZoIls1yw.png" /><figcaption>SUB_GET_Profile Microflow</figcaption></figure><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  https://api.linkedin.com/v2/me<br><strong>Header</strong><br>  Key – Authorization<br>  Value - &#39;Bearer {Access token}&#39;</pre><p><strong>Response</strong></p><p>Create a JSON snippet and add the below JSON_Profile_Response.</p><pre>{<br> &quot;localizedLastName&quot;: &quot;name&quot;,<br>    &quot;profilePicture&quot;: {<br>        &quot;displayImage&quot;: &quot;urn:li:digitalmediaAsset:xxx&quot;<br>    },<br>    &quot;firstName&quot;: {<br>        &quot;localized&quot;: {<br>            &quot;en_US&quot;: &quot;Name&quot;<br>        },<br>        &quot;preferredLocale&quot;: {<br>            &quot;country&quot;: &quot;US&quot;,<br>            &quot;language&quot;: &quot;en&quot;<br>        }<br>    },<br>    &quot;lastName&quot;: {<br>        &quot;localized&quot;: {<br>            &quot;en_US&quot;: &quot;R&quot;<br>        },<br>        &quot;preferredLocale&quot;: {<br>            &quot;country&quot;: &quot;US&quot;,<br>            &quot;language&quot;: &quot;en&quot;<br>        }<br>    },<br>    &quot;id&quot;: &quot;{profile_id}&quot;,<br>    &quot;localizedFirstName&quot;: &quot;your name&quot;<br>}</pre><p>Then, using this JSON structure, create an import mapping and add that to the REST call response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*z2lVQ6W048YO9A-jW9jVDA.png" /></figure><p>In this response, you will receive a user profile ID which you can use to post content on your LinkedIn account. You should then return this response in the microflow endpoint.</p><p><strong>Image Register in LinkedIn Asset</strong></p><p>To post an image on LinkedIn, you can’t directly publish it with your post. Instead, you’ll need to register for a LinkedIn asset account and upload your image to the asset.</p><p>3. Create a new string variable and paste the below JSON request in that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSoYX2wL14VDPS8x--ibHw.png" /></figure><p><strong>JSON_Asset_Request</strong></p><pre>{<br>    &quot;registerUploadRequest&quot;: {<br>        &quot;recipes&quot;: [<br>            &quot;urn:li:digitalmediaRecipe:feedshare-image&quot;<br>        ],<br>        &quot;owner&quot;: &quot;urn:li:person:&#39;+{Response_profile_ID}+&#39;&quot;,<br>        &quot;serviceRelationships&quot;: [<br>            {<br>                &quot;relationshipType&quot;: &quot;OWNER&quot;,<br>                &quot;identifier&quot;: &quot;urn:li:userGeneratedContent&quot;<br>            }<br>        ]<br>    }<br>}</pre><p>4. Add REST Call in flow for asset register and add the below detail in the REST call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRkM3H4uMFXYqNxkbI7USA.png" /></figure><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  https://api.linkedin.com/v2/assets?action=registerUpload<br><strong>Header</strong><br>  Key – Authorization<br>  Value - &#39;Bearer {Access token}’<br><strong>Request</strong><br>  Call Created JSON_Asset_Request in the request tab.<br></pre><p><strong>Response</strong></p><p>Create a JSON snippet and add the below JSON response.</p><pre>{<br>    &quot;value&quot;: {<br>        &quot;mediaArtifact&quot;: &quot;urn:li:digitalmediaMediaArtifact:(urn:li:digitalmediaAsset:C5622AQHGm4aXh0hSJQ,urn:li:digitalmediaMediaArtifactClass:feedshare-uploadedImage)&quot;,<br>        &quot;uploadMechanism&quot;: {<br>            &quot;com.linkedin.digitalmedia.uploading.MediaUploadHttpRequest&quot;: {<br>                &quot;uploadUrl&quot;: &quot;{upload_ulr}&quot;,<br>                &quot;headers&quot;: {<br>                    &quot;media-type-family&quot;: &quot;STILLIMAGE&quot;<br>                }<br>            }<br>        },<br>        &quot;asset&quot;: &quot;{Asset_id}&quot;,<br>        &quot;assetRealTimeTopic&quot;: &quot;urn:li-realtime:digitalmediaAssetUpdatesTopic:urn:li:digitalmediaAsset:C5622AQHGm4aXh0hSJQ&quot;<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPDWqbg86tLK4XjTYP7a2g.png" /></figure><p>Create an import mapping in JSON format and add the JSON Asset Response. You will get an upload URL and asset ID in the Response where we should upload the image to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*eg4w4-I22ZOSe6Q-c3cn5g.png" /></figure><p>Once your Linkedin Asset register request is completed, you will get an <strong>Upload URL</strong> and <strong>Asset ID </strong>as a response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hS8XRYWXsOFnqQ-0lAXCRQ.png" /></figure><p><strong>5. Upload binary image file in the asset.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ySJ2HgHvlmVoA1zKS9sqQ.png" /></figure><p>Add REST call in a flow to upload the post’s images in the LinkedIn asset.</p><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  In this location you need to give before asset register response /upload url.<br><strong>Header</strong><br>  Key - Authorization<br>  Value - &#39;Bearer {Access token}&#39;<br><strong>Request</strong><br>  Set binary for the entire request. and add Content.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*A34ydGPmJJooap84JXDMpA.png" /></figure><p>6. Create a new string variable and add the below JSON request in that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRZG6e_Gqm0oEggiVIBQNg.png" /></figure><p><strong>JSON_Send_Post_Request</strong></p><pre>{<br>    &quot;author&quot;: &quot;urn:li:person:{User_Id}&quot;,<br>    &quot;lifecycleState&quot;: &quot;PUBLISHED&quot;,<br>    &quot;specificContent&quot;: {<br>        &quot;com.linkedin.ugc.ShareContent&quot;: {<br>            &quot;shareCommentary&quot;: {<br>                &quot;text&quot;: &quot;{Post/Text}&quot;<br>            },<br>            &quot;shareMediaCategory&quot;: &quot;IMAGE&quot;,<br>            &quot;media&quot;: [<br>                {<br>                    &quot;status&quot;: &quot;READY&quot;,<br>                    &quot;description&quot;: {<br>                        &quot;text&quot;: &quot;Center stage!&quot;<br>                    },<br>                    &quot;media&quot;: &quot;{Asset_id}&quot;,<br>                    <br>                    &quot;title&quot;: {<br>                        &quot;text&quot;: &quot;LinkedIn Talent Connect 2022&quot;<br>                    }<br>                }<br>            ]<br>        }<br>    },<br>    &quot;visibility&quot;: {<br>        &quot;com.linkedin.ugc.MemberNetworkVisibility&quot;: &quot;PUBLIC&quot;<br>    }<br>}</pre><p>7. Add a REST call in a flow, and add the below details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPKDkSPPyDgKtRIATCRkHw.png" /></figure><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  https://api.linkedin.com/v2/ugcPosts<br><strong>Header</strong><br>  Key - Authorization<br>  Value - &#39;Bearer {Access token}&#39;<br><strong>Request:</strong> <br>  Call a created JSON_Send_Post_Request String in the request tab.<br><strong>Response:</strong> <br>  Store post id in a string.</pre><p>After publishing a post on your LinkedIn profile, you’ll receive a post share ID in response.</p><p>Add “change object” activity in the microflow and store the post share ID. Next, set the “edit” attribute of the post entity to “true”. This will allow you to update or delete the post using the post ID.</p><p><strong>Post view in Mendix application</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLl8nSeAVvzqqBNcg5kyyA.png" /></figure><p><strong>Post view in LinkedIn profile</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ena3YOaPZGwpzH2UHOSbQQ.png" /></figure><p><strong>Update post</strong></p><p>You can update posted content on LinkedIn from the Mendix application, but you can update only text content from posts, not images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*gemEIldbDCulXLqoXz9q1A.png" /></figure><p>After editing the text content of a post, click on the “Save” button. By clicking the “Save” button, the post-publish flow will be initiated. However, I have made changes to this flow and updated it with the post-update flow. In the following steps, I explain the post-update flow structure.</p><p>In the decision, we shall check whether it’s a new or updated object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhYXjIYkP2kHHvmLqmHGlw.png" /><figcaption>JSON_Update_Request</figcaption></figure><ol><li>In the true branch of the decision add a create variable activity and set the type to string. Next, paste the below JSON request in that variable.</li></ol><p><strong>JSON_Update_Request:</strong></p><pre>{<br>    &quot;patch&quot;: {<br>        &quot;$set&quot;: {<br>            &quot;text&quot;: {<br>                &quot;annotations&quot;: [],<br>                &quot;text&quot;: &quot;{Post/Text}&quot;<br>            }<br>        }<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LC1dGP_EX_P4pGjk34JoA.png" /><figcaption>Post_update_REST_Call</figcaption></figure><p>2. Add Rest Call in flow for post update, and add the below details.</p><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  https://api.linkedin.com/v2/shares/{Post_id}<br><strong>Header</strong><br>  Key – Authorization<br>  Value - &#39;Bearer {Access token}’<br><strong>Request</strong><br>  Call a Post_Update_Request string in the request tab.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*rh_vAfRDaMYMTX3IljZ7qw.png" /></figure><p>If their response is successful, the post will be edited on LinkedIn.</p><p><strong>Updated post on LinkedIn</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjNCZVrYpEGxz9hhaiIwtg.png" /></figure><p><strong>Post Delete</strong></p><p>7. You can delete posted content in LinkedIn from the Mendix application using “<strong>post share ID”</strong>.</p><p>Create a new microflow to delete a post as explained below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FDTFPYriA88KX3O75lCtKg.png" /></figure><p>Add REST call activity in the created microflow.</p><pre><strong>Method</strong><br>  DELETE<br><strong>Location<br>  </strong>https://api.linkedin.com/v2/shares/{Your_Post_ID}<br><strong>Header</strong><br>  Key – Authorization<br>  Value - &#39;Bearer {Access token}’</pre><p>The published post content will be deleted from your LinkedIn profile using your Mendix app.</p><p>Let’s now explore how to share a URL on LinkedIn through Mendix.</p><p><strong>URL Share from Mendix</strong></p><ol><li>Create a new URL share in Mendix.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*7nAdDMKCpkgAY6Zyo5Xbvg.png" /></figure><p>In the save button, call a new microflow. In the steps below I shall explain the microflow structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPubH2QLaNMBPFwyI2mrmg.png" /></figure><p><strong>Microflow steps</strong></p><ol><li>Add a decision in the flow to check if it is a new URL share or an updated post.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7UDpwzR34wK6_bi9NhAGA.png" /></figure><p>2. Add a Microflow call activity in the flow call SUB_GET_Profile inside it. (This flow was explained in the above post-send flow. Please refer to that).</p><p><strong>JSON_Share_Request</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYfxha0HboaOaHq--HefaQ.png" /><figcaption>JSON_Share_Request</figcaption></figure><p>3. Create a new string variable in microflow and paste the below JSON Request body.</p><pre>{<br>  &quot;owner&quot;: &quot;urn:li:person:{user_id}&quot;,<br>  &quot;subject&quot;: &quot;Article Title&quot;,<br>  &quot;text&quot;: {<br>    &quot;text&quot;: &quot;{URL_Share/ text}&quot;<br>  },<br>  &quot;content&quot;: {<br>    &quot;contentEntities&quot;: [<br>      {<br>        &quot;entityLocation&quot;: &quot;{ImageTargetURL}&quot;,<br>        &quot;thumbnails&quot;: [<br>          {<br>            &quot;resolvedUrl&quot;: &quot;{ImageURL}&quot;<br>          }<br>        ]<br>      }<br>    ],<br>    &quot;title&quot;: &quot;{Title}&quot;,<br>    &quot;description&quot;: &quot;Article Description&quot;<br>  },<br>  &quot;distribution&quot;: {<br>    &quot;linkedInDistributionTarget&quot;: {}<br>  }<br>}</pre><p>4. Call a REST call activity in flow and add the below format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QSBI2RSQOjZbx8aP3hqDA.png" /></figure><pre><strong>Method</strong><br>  POST<br><strong>Location</strong><br>  https://api.linkedin.com/v2/shares<br><strong>Header</strong><br>  Key – Authorization<br>  Value - &#39;Bearer {Access token}’<br><strong>Request</strong><br>  Call JSON_Share_Request</pre><p><strong>Response</strong></p><p>In response, you will get the URL share ID, save that in the URL_Share entity.</p><p>After publishing a URL_share on your LinkedIn profile, you’ll receive a URL_share ID in response.</p><p>Add “change object” activity in the microflow and store the URL_share ID and set the “Edit” attribute of the URL_Share entity to “true”. This will allow you to update or delete the post using the URL_Share ID.</p><p><strong>URL Share view in Mendix</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mybfo_d16kQC2u8Wy8GFgQ.png" /></figure><p><strong>URL Share View on LinkedIn</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFfrTRL338jecc0SEaF3KA.png" /></figure><p><strong>URL Share Update &amp; Delete</strong></p><p>You Can do a URL Share Update and delete it from your Mendix app. To update and delete, please follow the above post update and delete steps.</p><h4>Thank you!</h4><p>You have successfully completed integrating Linkedin’s Post and URL Share APIs in your Mendix APP</p><p>You can now create, update, and delete posts on LinkedIn from your Mendix app.</p><p>I hope that you find this information useful. If you have any questions or concerns, please feel free to leave them in the comments section below. Thank you for reading!</p><p>See you in the next blog!</p><h4>Read more</h4><ul><li><a href="https://developer.linkedin.com/">LinkedIn Developer Solutions</a></li><li><a href="https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin?source=recommendations">Share on LinkedIn - LinkedIn</a></li><li><a href="https://docs.mendix.com/refguide/consumed-rest-services/">Consumed REST Services</a></li></ul><p><strong><em>From the Publisher -</em></strong></p><p><em>Inspired by this article to bring your ideas to life with Mendix? Sign up for a </em><a href="https://signup.mendix.com/?utm_medium=content_syndication&amp;utm_source=medium.com&amp;utm_id=11172331"><em>free account</em></a><em>! You’ll get instant access to the </em><a href="https://academy.mendix.com/link/home"><em>Mendix Academy,</em></a><em> where you can start building your skills.</em></p><p><em>For more articles like this one, visit our </em><a href="https://medium.com/mendix"><em>Medium page</em></a><em>. And you can find a wealth of instructional videos on our </em><a href="https://www.youtube.com/c/MendixCommunity/community"><em>community YouTube page</em></a><em>.</em></p><p><em>Speaking of our community, join us in our </em><a href="https://join.slack.com/t/mendixcommunity/shared_invite/zt-hwhwkcxu-~59ywyjqHlUHXmrw5heqpQ"><em>Slack community channel</em></a><em>. We’d love to hear your ideas and insights!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4017a1024da3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mendix/publish-content-on-linkedin-from-your-mendix-app-4017a1024da3">Publish Content on LinkedIn from your Mendix App -</a> was originally published in <a href="https://medium.com/mendix">Mendix Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LinkedIn SSO in Mendix]]></title>
            <link>https://medium.com/mendix/linkedin-sso-in-mendix-c561662fb477?source=rss-ab6c0fe548f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c561662fb477</guid>
            <category><![CDATA[mendix]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[linkedin]]></category>
            <dc:creator><![CDATA[Thirumalai Kumar R]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 11:29:36 GMT</pubDate>
            <atom:updated>2024-01-12T13:21:40.938Z</atom:updated>
            <content:encoded><![CDATA[<h4>With the OIDC Marketplace Module</h4><h4>LinkedIn is a popular professional social networking site that boasts over 900 million registered users worldwide as of 2023. LinkedIn’s user base has grown steadily since its launch in 2003.</h4><figure><img alt="LinkedIn SSO in Mendix With the OIDC Marketplace Module Banner Image" src="https://cdn-images-1.medium.com/max/1024/1*-m_TkCEB1X6a3tr0W6PmoQ.png" /><figcaption>LinkedIn SSO in Mendix With the OIDC Marketplace Module</figcaption></figure><p>In today’s fast-paced world, end users often find it cumbersome to go through a lengthy sign-up process for various applications. Furthermore, managing multiple passwords can be a terrible task for users. As a result, many applications now provide the option of Single Sign-On (SSO) for seamless user authentication. There are several SSO options available. In this blog post, we will explore how to use a business platform credential to authenticate your app for end users using LinkedIn as an identity provider. We will walk through the steps for implementing SSO using LinkedIn in a Mendix app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*FKelQRyMfAba4hhsB8mKzQ.jpeg" /></figure><h4><strong>Prerequisites Mendix modules</strong></h4><ul><li>Community Commons</li><li>Encryption</li><li>Nanoflow Commons</li><li>OIDC Module</li></ul><p>Here you can find the complete step-by-step guide to creating your LinkedIn SSO in the Mendix app.</p><p>Let&#39;s move on to the LinkedIn developer Settings.</p><h4><strong>LinkedIn Developer Portal Steps:</strong></h4><p><strong>Step 1:</strong> Log in to the LinkedIn developers’ portal and create a new application, go to <a href="https://developer.linkedin.com/">LinkedIn for developers</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*WOfvsA0nWYwvlXJztAITEA.png" /><figcaption>LinkedIn Developer Portal</figcaption></figure><p><strong>Step 2:</strong> Click <strong>Create app</strong> and complete the entire information. Specify your company name or create a new company page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKIEDQALL5o5-V9PtoOkgw.png" /></figure><p>Your app will be created with <strong>Client Id</strong> and <strong>Client Secret.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-w69-htW6854nA0kl6G1AA.png" /></figure><p><strong>Step 3</strong>: The app settings will be displayed after successfully creating an application. To complete the company verification process, simply click on the “<strong>verify</strong>” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Xp_DHVsFs-NquzjxMlUsfA.png" /></figure><p>After clicking on “<strong>verify</strong>”, a popup page will appear. Click on “<strong>Generate</strong> <strong>URL</strong>” to obtain a verification URL. Share the URL with an administrator of the organization page for approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*VjztfvAbs3wBhEnG1ERPQw.png" /></figure><p>After sharing the link, the association can complete the procedure by granting authorization. Once authorized, click on “<strong>I’m Done</strong>” to finish the process.</p><p>For testing purposes, you can create your own <a href="https://business.linkedin.com/marketing-solutions/cx/21/11/linkedin-pages?src=go-pa&amp;trk=sem-ga_campid.14649643565_asid.127700668992_crid.593625069562_kw.linkedin%20company%20page_d.c_tid.kwd-320556432217_n.g_mt.e_geo.9061895&amp;mcid=6843969601940799570&amp;cid=&amp;gclid=EAIaIQobChMI6L6dsqO1_QIVVQ8rCh2pagC9EAAYASAAEgJ0zPD_BwE&amp;gclsrc=aw.ds"><strong>organization profile</strong></a> on LinkedIn and request admin approval.</p><p><strong>Step 4</strong>: Once the administrator has authorized your request, refresh the browser to view the verified tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*FcSSBxVDBvg3ildnOlPiMQ.png" /></figure><p><strong>Step 5:</strong> To enable single sign-on and publish content in your application, you’ll need to add product APIs.</p><h4><strong>Follow these steps:</strong></h4><p>1. Go to the <strong>products</strong> tab in your application’s settings.</p><p>2. Click on “<strong>Request access</strong>” for the “<strong>Share on LinkedIn</strong>,” “S<strong>ign in with LinkedIn</strong>,” and “<strong>Sign in with LinkedIn v2</strong>” products.</p><p>3. <strong>Once your request is approved</strong>, these products will be available for use in your app.</p><p>By including these LinkedIn products in your application, your users will be able to seamlessly sign into your app with their LinkedIn credentials and share content from your app on LinkedIn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*HtFcRRxMZmbnU7WJ2FamOQ.png" /></figure><p><strong>Step 6:</strong> Go to the Auth tab, provide your <strong>application redirect URL</strong>, then update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*PSTo-wEgIqtK0iQFIeUEqQ.png" /></figure><p>You have successfully completed LinkedIn developer settings.</p><p>Now let’s move on to the Mendix app setup.</p><h4><strong>Mendix setup</strong></h4><p>Open your Mendix application. And follow the below steps to implement LinkedIn SSO.</p><p><strong>Step 1:</strong> Create a new Mendix application, go to <strong>security</strong>, and set it to “<strong>production</strong>”. Next add <strong>admin</strong>, <strong>user</strong>, and <strong>guest</strong> user roles in your module.</p><p><strong>Enable anonymous user access</strong> and set it as the “<strong>Guest</strong>” role for your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kTRA8R6QbAclpQ1UbGBFSA.png" /></figure><p><strong>Step 2:</strong> Create a new page and call the <strong>OIDC_Snip_Configuration</strong> snippet. Set the page visibility for admin. Add an <strong>OIDC configuration page</strong> and <strong>account overview page</strong> in the navigation.</p><p><strong>Step 3:</strong> Create a new login page and add <strong>OIDC_Snip_login_button</strong> in the page, set visibility for Admin and Guest role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*omWkdy_6X7Yq-u_FAuF20w.jpeg" /></figure><p><strong>Step 4:</strong> <strong>Create a home page</strong> and set visibility for the “<strong>User</strong>” user role.</p><p><strong>Add a role-based home page for all user roles</strong> in your projects’ navigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*oa_5iqFG7Ez_Tq-DoIVk5g.png" /></figure><p>Map the user roles in module roles, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtLFbCec0rjUqjMXmHGupg.png" /></figure><h4><strong>Navigation View</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8KUbSJG0o2Cdj6wQbtFGg.png" /></figure><p>Your Mendix application settings are done.</p><h4><strong>OIDC Configuration</strong></h4><p><strong>Run your app locally</strong> and log in as an <strong>administrator</strong>. Go to the OIDC client overview page and click on the “new” button. <strong>Create a new OIDC configuration.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CI3RLgo3wmBY2zxgmMObRg.png" /></figure><p>Enter your <strong>Client ID</strong>, and <strong>Client Secret key</strong> and enter the below Endpoits/URLs in respective fields.</p><pre>Alias Name: LinkedIn<br>Client ID: {Your client id}<br>Client secret key: {Your secret key}<br>Client Assertion: Client ID and Secret<br>Active: Yes<br>Authorization_endpoint: &quot;https://www.linkedin.com/oauth/v2/authorization&quot;<br>Token_endpoint: &quot;https://www.linkedin.com/oauth/v2/accessToken&quot;<br>Userinfo_endpoint: &quot;https://api.linkedin.com/v2/userinfo&quot;<br>Jwks_uri: &quot;https://www.linkedin.com/oauth/openid/jwks&quot; <br>Issuer: &quot;https://www.linkedin.com&quot;</pre><p><strong>Add Scopes</strong> which are given in the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfZInj66oNOJSBo8g3NorQ.png" /></figure><p>Once OIDC configuration processes are done, <strong>Save the Configuration</strong>, and Log out.</p><h4><strong>Login</strong></h4><p>When a guest user lands on your site, they will see the following page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6iAv-zE6fwrNu4p9Cunvw.png" /></figure><p>Now login to the Mendix application using the “<strong>Login via LinkedIn</strong>”<strong> </strong>option.</p><p>Next, you will navigate to the LinkedIn login page. Enter your LinkedIn account name and password and click on <strong>sign in.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJW6qvfWkQf7XrTutmz8DA.jpeg" /></figure><p>If your 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/FullName attribute using a label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*d8_WP3zjWBXfbPYHYfxnGA.png" /></figure><p>Congratulations! You have completed the LinkedIn SSO in Mendix successfully.</p><h4><strong>Coming up next</strong></h4><p>In this blog, I demonstrated the implementation of LinkedIn single sign-on in Mendix applications (Part 1). In my upcoming blog, I will guide you on how to use the <strong>“Share on LinkedIn API”</strong> product to publish content as a post or share on LinkedIn directly from your Mendix application.</p><p>Part-2 of this blog is titled “<strong>Publish content in LinkedIn from Mendix application</strong>”.</p><p>I hope that you find this information useful. If you have any questions or concerns, please feel free to leave them in the comments section below.</p><p>Thank you for reading!</p><h4>Read more</h4><ul><li><a href="https://developer.linkedin.com/">LinkedIn Developer Solutions</a></li><li><a href="https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2">Sign In with LinkedIn using OpenID Connect - LinkedIn</a></li><li><a href="https://docs.mendix.com/appstore/modules/oidc/">OIDC SSO</a></li></ul><p><strong><em>From the Publisher -</em></strong></p><p><em>Inspired by this article to bring your ideas to life with Mendix? Sign up for a </em><a href="https://signup.mendix.com/?utm_medium=content_syndication&amp;utm_source=medium.com&amp;utm_id=11172331"><em>free account</em></a><em>! You’ll get instant access to the </em><a href="https://academy.mendix.com/link/home"><em>Mendix Academy,</em></a><em> where you can start building your skills.</em></p><p><em>For more articles like this one, visit our </em><a href="https://medium.com/mendix"><em>Medium page</em></a><em>. And you can find a wealth of instructional videos on our </em><a href="https://www.youtube.com/c/MendixCommunity/community"><em>community YouTube page</em></a><em>.</em></p><p><em>Speaking of our community, join us in our </em><a href="https://join.slack.com/t/mendixcommunity/shared_invite/zt-hwhwkcxu-~59ywyjqHlUHXmrw5heqpQ"><em>Slack community channel</em></a><em>. We’d love to hear your ideas and insights!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c561662fb477" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mendix/linkedin-sso-in-mendix-c561662fb477">LinkedIn SSO in Mendix</a> was originally published in <a href="https://medium.com/mendix">Mendix Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>