question

Arpna-3737 avatar image
0 Votes"
Arpna-3737 asked shashishailaj edited

Does Azure AD allows socket based connection from nodejs

The Exchange server allows socket based connection, for example: SMTP protocol could be connected at smtp.office365.com:587

Is there any similar protocol based endpoint exposed by Azure where we can connect by providing a host and port and creds?

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shashishailaj avatar image
1 Vote"
shashishailaj answered shashishailaj edited

@Arpna-3737 , Apologies for the delay in response on this one. No Azure AD does not allow conecting to it like that . Its a little different than on-prem AD or the exchange SMTP service. Azure AD is only accessible through the Microsoft Identity Platform by registering an application and sending the authentication request to https://login.microsoftonline.com/common endpoint . This is over standard HTTPS i.e port 443. It uses the oAuth protocol . If you go to the Application registration blade in Azure AD and click on endpoints , It will show you all the endpoints available that you can connect through your nodejs app.

136278-image.png

You can start with the following two documents . I would suggest you to check the NodeJS quickstart samples here.

Most common oAuth Code flow supported by Azure AD
Building Multi-tenant Applications

Alternatively you can choose to create an app registration and check any of the quickstart guides as shown below.
136355-image.png

Hope this helps you . If you still have any further queries , do let us know and we will be happy to help further.

Thank You


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.



image.png (49.5 KiB)
image.png (89.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.