Hi,
i want to integrate my application with Office 365 and allow users to access the app based on the O365authentication.
Kareem Mohamed wrote:
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 ?
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
Ok Cesar,I will try it.thanks for your effort
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
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
I´ll try to make an example for you. And you have an idea how to build this interaction of auth, ok?
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 ?
Yes ... Everything is possible ... rs ... easy or hard way ... :)
I´ll try to make an demo for you
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:
Login to Azure account
Find and open Azure Active Directory on Dashboard.
In Azure Active Directory click on App Registration menu.
Click on +New application registration menu.
Enter Name, Application Type, Sign-on URL (Login URL of your website) and click on Create.
Here you can find Application ID(Client ID).
Enter Home page URL of your website in : Settings?Properties?Home Page URL
Create Secret Key in: Settings?Keys?Password Section ? Enter Description & Duration and click on save button to generate Secret Key.
Enter Reply URLs in: Settings?Reply URLs.
Steps to implement SSO in OutSystem:
Install MicrosoftLoginConnector from forge.
https://www.outsystems.com/forge/component/3275/microsoft-login-connector/?Unfollow=False
Open MicrosoftLoginConnector in service studio.
In Modules section you will find 2 modules
MicrosoftLoginConnector
Microsoft_StringUtils(extension)
Open MicrosoftLoginConnector Module
Create a link on Login page set its destination as CommonFlow\OAuthLogin .
CommonFlow\OAuthLogin require 5 input parameters , so you need to set parameters value.
OriginalURL: URL Page where the user is going to be redirect after being Logged in.
Resource: - Only for Login with Microsoft use "https://graph.windows.net" value.
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.
Client Id - Get from Azure Settings. The Application Id that the registration portal assigned your app.
ClientSecret - Get from Azure Settings. The application secret that you created in the app registration portal for your app.
In CallbackPage Screen's Prepration you will get all the response data.
Let me know if you need any more help.
Regards,
Afaque Shaikh
Afaque Shaikh wrote:
Hello,
I'm trying to do Login page with autentication of office 365.
i have this form :
it's possible to send user and pass to office365 in back-end to validate if user exist or not and we obtain success message or error message to display in the page ?
Alexis Rodriguez
I have this problem, could you help me ?
This is my configuration in OutSystems:
OriginalURL: "https://alexis-rodriguez.outsystemscloud.com/WARP2/ConsultaDni.aspx?(Not.Licensed.For.Production)="
Resource: "https://graph.windows.net"
Scope: "user_impersonation"
ClienteId: "727cee92-a81a-4ea7-8710-0961905032eb"
ClientSecret: "Z/2cUBuBMGUbOMHHr/C1CQWTOp32cQTA6Ad5CV+R58U="
This is my configuration in Azure:
Application URI: https://alexis-rodriguez.outsystemscloud.com/WARP2/
Home Page URL: https://alexis-rodriguez.outsystemscloud.com/WARP2/
Reply URL: https://alexis-rodriguez.outsystemscloud.com/MicrosoftLoginConnector/Callback.aspx?_ts=636852337103140323
Alexis Rodriguez Francisco