This document outlines the steps to configure OAuth2 for your application using Microsoft Azure. The setup involves registering your application, obtaining crucial credentials, and configuring redirect URLs. This process is essential for enabling secure authentication and authorization.
-
Registering Your Application
Sign in to Azure Portal
Log in to the Azure portal with your account credentials: https://portal.azure.com/#home
Create a New Application Registration
Select App registrations:
Click New registration:
Configure Application Registration
Name: Enter a descriptive name for your application.
Supported account types: Choose the appropriate option for your application (e.g., Accounts in this organizational directory only).
Redirect URI: Enter the URI where users will be redirected after authentication (e.g., https://yourapp.com/callback).
-
Obtain Application Credentials
Client ID:
After registration, navigate to Overview.
Copy the Application (client) ID. This is your Client ID.
Client Secret:
Go to Certificates & secrets in the application settings.
Click New client secret.
Provide a description and select an expiry period and click Add.
Copy the generated value immediately. This is your Client Secret.
-
Configure Redirect URIs
In the Authentication section, add any additional redirect URIs required by your application. Ensure the URIs are correctly configured to match those used in your application to avoid authentication errors.
-
Configuring Permissions for Client Email Authorization
Navigate to API Permissions:
In the Azure Portal, go to Azure Active Directory.
Select App registrations and choose your registered application.
Click on API permissions in the left-hand menu.Add Required Permissions:
Click Add a permission.
Choose Microsoft Graph as the API.
Select Delegated permissions.
Search for and select Mail.Send.
Click Add to include the permission in your application.
Now everything is ready to be used in ColorProof.
Comments
0 comments
Please sign in to leave a comment.