integrate with O365

integrate with O365

  

Hi, 

i want to integrate my application with Office 365 and allow users to access the app based on the O365
authentication. 

Kareem Mohamed wrote:

Hi, 

i want to integrate my application with Office 365 and allow users to access the app based on the O365
authentication. 

Kareem,

Did you see this connector in our Forge Community?

Office 365 Connector


And maybe this can help you.

Office 365 APIs platform overview


Best regards



César ,
I have already added this to my app but I want to know what's next to enable the o365 users accessing my app ? 

Kareem Mohamed wrote:

César ,
I have already added this to my app but I want to know what's next to enable the o365 users accessing my app ? 

Kareem,

With connector installed we got an eSpace Demo where you can have an idea how the authentication works.

And still in connector you have in configuration to set an callback screen.

from there after authentication with O365 in your session you can expose or work with everything in your app.


If you still have an doubt. Let me now and I´ll try to build an example for you


Best regards


Ok Cesar,
I will try it.
thanks for your effort  

Kareem Mohamed wrote:

César ,
I have already added this to my app but I want to know what's next to enable the o365 users accessing my app ? 

Kareem,

With connector installed we got an eSpace Demo where you can have an idea how the authentication works.

And still in connector you have in configuration to set an callback screen.

from there after authentication with O365 in your session you can expose or work with everything in your app.


If you still have an doubt. Let me now and I´ll try to build an example for you


Best regards




César

i tried to configure as shown below and i got a bad request from O365

Hi Kareem,

Sorry about this delay.

I´ll try to make an example for you. And you have an idea how to build this interaction of auth, ok?


Regards

César Mateus wrote: ok, thanks in advance


Hi Kareem,

Sorry about this delay.

I´ll try to make an example for you. And you have an idea how to build this interaction of auth, ok?


Regards



Kareem Mohamed wrote:

César Mateus wrote: ok, thanks in advance


Hi Kareem,

Sorry about this delay.

I´ll try to make an example for you. And you have an idea how to build this interaction of auth, ok?


Regards



Sorry about this delay ... Was too busy. Did you solve this problem? 


not yet, I have contacted the Outsystem support team to find a solution.
this link is a one from the team answer

·         Out-of-the-box integrations (Facebook, SalesForce, Amazon EC2, and 11 more).
is what I need to do possible ? 




Kareem Mohamed wrote:

not yet, I have contacted the Outsystem support team to find a solution.
this link is a one from the team answer

·         Out-of-the-box integrations (Facebook, SalesForce, Amazon EC2, and 11 more).
is what I need to do possible ? 




Yes ... Everything is possible ... rs ... easy or hard way ... :)

I´ll try to make an demo for you 



Kareem Mohamed wrote:

César

i tried to configure as shown below and i got a bad request from O365

Did you still got bad request? O365 Demo worked perfectly with this settings. 

And this configuration must have the same as on your Azzure account.


My account expired and i couldn´t make more tests.

But in advance you can do what you have in mind




Or an simple solutions you can use Windows Live ID Web Authentication SDK without using this O365 Connector

Hello Kareem,

 If you want to just authenticate user via Azure AD, you can also go for MicrosoftLoginConnector.


Below I am listing all the steps to implement SSO:

To implement SSO Office 365 first you need to create App in https://portal.azure.com. 

Steps to create App in https://portal.azure.com: 

  1. Login to Azure account 

  2. Find and open Azure Active Directory on Dashboard. 

  3. In Azure Active Directory click on App Registration menu. 

  4. Click on +New application registration menu. 

  5. Enter Name, Application Type, Sign-on URL (Login URL of your websiteand click on Create. 

  6. Here you can find Application ID(Client ID). 

  7. Enter Home page URL of your website in : Settings?Properties?Home Page URL 

  8. Create Secret Key in: Settings?Keys?Password Section ? Enter Description & Duration and click on save button to generate Secret Key. 

  9. Enter Reply URLs in: Settings?Reply URLs. 



 
 Steps to implement SSO in OutSystem: 

  1. Install MicrosoftLoginConnector from forge.  


https://www.outsystems.com/forge/component/3275/microsoft-login-connector/?Unfollow=False 


  1. Open MicrosoftLoginConnector in service studio. 

  2. In Modules section you will find 2 modules 

    1. MicrosoftLoginConnector 

    2. Microsoft_StringUtils(extension) 

  3. Open MicrosoftLoginConnector Module 

  4. Create a link on Login page set its destination as CommonFlow\OAuthLogin . 

  5. CommonFlow\OAuthLogin require 5 input parameters , so you need to set parameters value. 

    1. OriginalURL: URL Page where the user is going to be redirect after being Logged in. 

    2. Resource: 
         - Only for Login with Microsoft use "https://graph.windows.net" value. 

    3. Scope: Impersonation permissions granted to the client application. The default permission is user_impersonation. The owner of the secured resource can register additional values in Azure AD. 

    4. Client Id - Get from Azure Settings. The Application Id that the registration portal assigned your app. 

    5. ClientSecret - Get from Azure Settings. The application secret that you created in the app registration portal for your app.  

  6. In CallbackPage Screen's Prepration you will get all the response data. 


Let me know if you need any more help.


Regards,

Afaque Shaikh