microsoft / oxa-tools

Open edX on Azure Tools
MIT License
36 stars 103 forks source link

Unable to integrate Azure AD SSO #460

Open regionbbs opened 5 years ago

regionbbs commented 5 years ago

I had configured my Openedx on Azure and enabled third party authentication (OAuth) for Azure AD with this documentation: https://github.com/microsoftarchive/edx-documentation/blob/master/en_us/install_operations/source/configuration/enable_sso.rst

But I can't see Azure AD login button at login page. How can I do to configure to let it works?

PS: Azure AD is built with Office 365.

Thank you.

wladinho31 commented 5 years ago

@regionbbs

When you deployed Open edX? Earlier or these days?

Regards,

regionbbs commented 5 years ago

Hi, I deploy my site yesterday. Thank you.

wladinho31 commented 5 years ago

I was asking you because I cannot deploy edX last 2 months. Can you please, tell me, what branch you used? Master.fic or dev? Also, what version of Azure CLI and AzureRM PowerShell module you have used.

Or, do you had any specific configuration or just deployed based on provided document?

Regards,

regionbbs commented 5 years ago

I have no any specific configuration, the following picture is a part of my bvt.sh, I think it's master.fic.

image

I use Azure CLI v2.0.31, and Azure PowerShell v5.1.2.

wladinho31 commented 5 years ago

If you have somewhere Azure CLI 2.0.31 installation somewhere, can you share with me please? Microsoft removed older installations from storage blob.

Thanks,

regionbbs commented 5 years ago

You can use this to download 2.0.31 MSI. https://1drv.ms/u/s!Ap6x7hKLSm4mhKBHuoYPmnj4ON-psw?e=mgtZw1

I will remove it later.

wladinho31 commented 5 years ago

Hi @regionbbs.

Thank you for the installation package.

I have tried with Azure CLI 2.0.31, but again same error on same step. 1 minute after configuring jumpbox machine is started. I have check all logs, but without success.

Regards,

regionbbs commented 5 years ago

Can you share your PowerShell script for deploy Openedx on Azure? I deployed successfully several times.

wladinho31 commented 5 years ago

@regionbbs,

Good news. First time script failed, but when I ran script again, I have finally deployed edX.

Thanks.

regionbbs commented 5 years ago

Congratulations.

prabhanshu commented 5 years ago

Hi @regionbbs / @Wladinho , Is the issue fixed or you guys still facing the issue? Let me know so that I can close this

regionbbs commented 5 years ago

This issue is still exist. I also have another issue: My deploy failed several times like @Wladinho with "installoxa" VM extension failed error.

prabhanshu commented 5 years ago

Do you have any logs? It will help us to understand the issue Thanks Prabhanshu

regionbbs commented 5 years ago

I will retry it at this night, and will post error message here.

regionbbs commented 5 years ago

Error message is here: image

regionbbs commented 5 years ago

I seem another error message at next try: image

wladinho31 commented 5 years ago

Have you changed anything from last success deployment? PowerShell AzureRM module or Azure CLI version?

regionbbs commented 5 years ago

No, I cloned from github with instructions. image

I just changed id_rsa and id_rsa.pub with instructions, and change site domain name for my site. image

I retried twice and all failed.

PowerShell version: 5.1.17134.765 CLI version: 2.0.31

regionbbs commented 5 years ago

I had re-download deploy scripts from github and ran deployment was successfully.

But original issue (AAD integration) is still not resolved.

prabhanshu commented 5 years ago

@regionbbs did you get any specific error in logs while AAD integration. Sorry for the delayed response

regionbbs commented 5 years ago

Where can I find log about AAD integration? (log location) Thank you.

regionbbs commented 5 years ago

I have found an approach to resolve this, I configure "Backend Name" and "Provider slug" to "azuread-oauth2", then secondary sign-on UI appear. image

But it can't show registration form when logged in successfully for new users.