App registration

The 446 Plattform supports modern authentication using OAuth2 OAuth 2.0 (Open Authorization) is an open protocol that allows standardized, secure API authorization for desktop, web and mobile applications. An end user can use this protocol to allow an application to access (authorize) its data provided by another service (resource server) without disclosing secret details of its access authorization (authentication) to the client. The end user can thus instruct third parties to consume a service on his behalf. Typically, the transmission of passwords to third parties is avoided. [Wikipedia] for mail reception and sending, as well as free/busy information and the ability to set calendar entries. To get started, the app must be registered using a provider who supports this service.

 

The setup is described here using Microsoft 365 (formerly Office 365) and Azure AD Azure Active Directory (Azure AD) is an Identity & Access Management solution developed by Microsoft in order to connect people with apps, devices and data. as an example. A list of notable oAuth providers is available at Wikipedia Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers through open collaboration and a wiki-based editing system. [...] Wikipedia is the largest and most-read reference work in history.It is consistently one of the 10 most popular websites ranked by Similarweb and formerly Alexa; as of 2022 [...]. It is hosted by the Wikimedia Foundation, an American non-profit organization funded mainly through donations. here.

Note:

Please visit the website of your identity provider to get more information on how to register your app there. For example, Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washington, United States. Its best-known software products are the Windows line of operating systems, the Microsoft Office suite, and the Internet Explorer and Edge web browsers. Its flagship hardware products are the Xbox video game consoles and the Microsoft Surface lineup of touchscreen personal computers. Microsoft ranked No. 21 in the 2020 Fortune 500 rankings of the largest United States corporations by total revenue [...] (Wikipedia) has a Quickstart: Register an application with the Microsoft identity platform tutorial and so does Google with their Using OAuth 2.0 to Access Google APIs instructions, giving you hints for setting up your application properly there.

Steps to register your app in the Azure AD portal

Go to the Azure AD portal and hit 'App registrations'. Make sure you have administrative access. (Direct link)

1. Select «App registrations»

2. + New registration

 

1. You give this app a meaningful name

2. and decides (normally) that it is allowed to act in the current client. may act.

3. As redirection URI you enter the URI that is displayed in the login configuration within the 446 Plattform

Tip:

For External login accounts, the redirection URI can be changed later on!

Summary

For application registration, two things are mandatory:

4. the Application (client) ID and

5. the appropriate endpoint

 

By the time writing this article, Microsoft provides the following endpoints:

Tip:

Replace the expression '{tenant id}' with your own Tenant Id from the Azure AD portal. More information regarding this topic can be found under How to find your Azure Active Directory tenant ID.

 

To get the authentication done, an additional client key (Client secret) is required.

Warning:

Important! Please be aware that the client secret can only be copied directly after the creation. If you miss the key here, you must generate a new one by repeating the process. The contents of the Value column must be copied here.

Set permissions

The final configuration step is done by granting your application the necessary access rights. The permissions of the FreeBusy Exchange functionality for example extends to the following scopes:

Warning:

To release the rights, click the Grant admin consent for “...” button.

Configured permissions

Note:

Difference between application context and user context:

When using an application in the user context, a specific user is required for authentication. Make sure that you create a dedicated user that is used exclusively for this task.

 

When using an application in the application context, an external program is allowed to authenticate itself as an application. This means that no user is required for authentication.

 

 

Successfully registering your app at your service provider enables you to: