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

No organizations visible in Meli #226

Open
Runeii opened this issue May 6, 2021 · 3 comments
Open

No organizations visible in Meli #226

Runeii opened this issue May 6, 2021 · 3 comments
Labels
question Further information is requested

Comments

@Runeii
Copy link

Runeii commented May 6, 2021

When using Github authentication, Meli does not seem to return/cannot find any organizations attached to my user.

OAuth completes fine and returns me back to Meli without any errors. Also correctly requests permissions for organization:
Screenshot 2021-05-06 at 11 52 15

Screenshot 2021-05-06 at 11 52 21

However, when in Meli, the organizations list is empty:
Screenshot 2021-05-06 at 11 52 31

Checking Dev Tools and the GET request is completing fine, code 200, but there is an empty response:
Screenshot 2021-05-06 at 11 52 44

For reference, I was able to use Meli fine when using standard authentication, but Github integration would be preferable.

@gempain
Copy link
Contributor

gempain commented May 6, 2021

Hi there. Each auth method creates new users that aren't initially linked to an organization. To see the organization you initially created with the in-memory auth, you will need to:

  1. connect using the in-memory auth
  2. invite a new user, using which ever email address is necessary
  3. connect to Meli using your Github account
  4. Click the invite link sent to you by email and accept the invite

You MUST be logged in to have access to the actual invitation. We know this is a bit odd, but its due to how our data model works in the background. It's something we have to improve. Was previously mentioned in #224.

Let me know if this helps.

@Runeii
Copy link
Author

Runeii commented May 6, 2021

I think perhaps I'm misunderstanding the organization concept, then – I was under the impression these would match the organizations available in Github? Is that not the case?

@gempain
Copy link
Contributor

gempain commented May 6, 2021

No, it is not matching the organization from Github. You have to create an organization in Meli. The only feature Meli has which uses Github orgs is that you can restrict access to users that only belong to specific orgs (so that users from other orgs cannot log into your Meli instance).

@gempain gempain added the question Further information is requested label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants