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

can not read my organizations on github #145

Open
aghiadaboud opened this issue Feb 21, 2023 · 0 comments
Open

can not read my organizations on github #145

aghiadaboud opened this issue Feb 21, 2023 · 0 comments

Comments

@aghiadaboud
Copy link

So i followed the instructions step by step and it worked fine until trying to read the organizations of a github-user:

String url = user.getAttribute("organizations_url"); 
List> orgs = rest 
            .get().uri(url) 
            .attributes(oauth2AuthorizedClient(client)) 
            .retrieve()
            .bodyToMono(List.class) 
            .block();`  

For some reason orgs is empty.
Do i need to change the scope for users?
Should the OAuth2 App be installed in an organization in order to allow the code above to access the organization-name?
Somebody can maybe help?

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

1 participant