RoundCube OAuth with Azure Active Directory

1.1k views Asked by At

I have mail box which has authentication with Azure AD Authentication. I am doing a POC with RoundCube where the authentication to login to that mail box should not be a user name and password. The application authentication will happens using Azure Active Directory and the same auth token should be passed to RoundCube to get authenticated the mail box while login to RoundCube.

Can you please point me any solution for the same.

Many Thanks, Thirumalai M

1

There are 1 answers

1
Shawn Tabrizi On

Based on your comment, I believe you are looking to implement an "on-behalf-of" scenario.

Please take a look at the following Sample we have on our GitHub: https://github.com/AzureADSamples/WebAPI-OnBehalfOf-DotNet

In this sample, native client calls a web API and then the web API calls another downstream web API after obtaining a token to act On Behalf Of the original user. The sample uses the Active Directory Authentication Library (ADAL) in the native client to obtain a token for the user to call the first web API, and also in the first web API to get a token to act on behalf of the user to call the second web API. Both flows use the OAuth 2.0 protocol to obtain the tokens.

Let me know if this sample helps you, or if you need additional clarification here.

Thanks, Shawn Tabrizi