Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using File Picker, Login into Nextcloud shows up nextcloud webpage instead of files in nextcloud #31

Closed
pkmkrishnakumar-zz opened this issue Mar 15, 2018 · 9 comments

Comments

@pkmkrishnakumar-zz
Copy link

When using File Picker shows up like this
image

When login into the nextcloud via popup window ,it logs into nextcloud and not showing the files in file picker.

image

Thus help me out to set up the nextcloud repository in moodle

@Dagefoerde
Copy link
Member

Are these screenshots a direct sequence, or do you see any other screens in the meantime? (Like a login form or buttons for authorisations?)

@pkmkrishnakumar-zz
Copy link
Author

pkmkrishnakumar-zz commented Mar 16, 2018

On first attempt a autherization screen displayed in which grant access is provided following that a login screen of nextcloud is being dispalyed , in which i gave the login credentials of the user.

After which it show up the default screen of nextcloud instead of files in nextcloud in file picker window.

Other details:
Nextcloud Version: 13.0.1
Moodle : 3.4+
Self Signed Certificate for Nextcloud (https://lms-jit/nextcloud)
Moodle is access via http and not https (http://lms-jit/moodle)

@Dagefoerde
Copy link
Member

Now that you're logged into Nextcloud in your browser already, if you press "Log in to your account" in Moodle again, which screen comes up?

@pkmkrishnakumar-zz
Copy link
Author

In moodle no response ,
It keep on shows the "Log in to your account"

If click it doesn't shows up, no response

If i close the pop up window opened earlier, and click the "Log in to your account" in moodle again a pop up window shows up as earlier (Logged in window of nextcloud.

Do i make any mistake in configuring in moodle?

I will show the settings made in moodle:

image
image
image
image

@Dagefoerde
Copy link
Member

All your Moodle configuration looks good to me. Therefore I think the error is with Nextcloud. Please have a look at your Nextcloud logs while attempting a connection and see if something comes up. Also, please double-check your Apache configuration according to the Nextcloud documentation. If the issue persists, the Nextcloud community might be able to help you out.

@pkmkrishnakumar-zz
Copy link
Author

pkmkrishnakumar-zz commented Mar 20, 2018

Nextcloud setting for OAuth 2.0 Clients

image

Can anyone provide me the minimum configuration requirements of Apache2 and Nextcloud, to make this app work in moodle.
Is there any dependencies in nextcloud or apache to be satisfied?

I am not sure to what to do next? Please any one guide me to sort this problem out.

@Dagefoerde
Copy link
Member

I'm really just a Moodle plugin developer, so I can't help out here, sorry. I only know about Apache modules that are required for ownCloud, but this might or might not apply to Nextcloud: owncloud/oauth2#110. Probably it's worth a try.

Maybe someone will see your inquiry here and can help, otherwise the Nextcloud community at https://help.nextcloud.com will be able to help you get OAuth 2 working in your Nextcloud+Apache setup.

@pkmkrishnakumar-zz
Copy link
Author

pkmkrishnakumar-zz commented Mar 20, 2018

Interesting I got other kind of results by changing Moodle settings as shown below:
image

Sequence of Operations in Moodle after making some change in OAuth 2 Services:
image

Click on Login in to your account

image

Click on Grant Access

image

Log in to your account

Now Pop up window displays default home page of moodle instead of redirecting to contents of cloud in file picker

image

Earlier in the post, I have posted previous settings in OAuth 2 Services, with that settings, pop up window did not close, but shows up nextcloud home page
Now with current settings (in this post), pop up window did not close as earlier case, but shows up moodle home page

Its disgusting for me whats happening

Seriously, I am not a coder/programmer either but an novice end user

Please help me out where is the mistake either in Moodle or Nextcloud

Nextcloud OAuth 2.0 Client settings:
image

Is there any thing to do with redirect url in nextcloud

@Dagefoerde
Copy link
Member

The redirect URI that you set up in Nextcloud looks good to me.
I assume that this error results from a Nextcloud misconfiguration, because Nextcloud is redirecting you to a wrong page.
However, as I said, I am at a loss here. Sorry I can't help you any further. Please refer to the links I posted above, especially to the Nextcloud community (https://help.nextcloud.com) because there you will find people who know more about Nextcloud who may even have encountered your particular error. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants