GitHub API not listing Organisations user is recently added to - github-api

I'm using the GitHub API to list organisations for an authenticated user
My user was added to an org before it had a user token generated.
Using the user/orgs end point, I can list the org it was on fine. But it has since been added to a new org as well, but that one never comes up in the list.
I'm struggling to find anything in the API about it.

Related

Invite team member functionality in MERN website

I am building a website using mern stack where every user who signs up gets their own subdomain according to the username they entered.
What I have done so far:
Users can create an account and get their subdomain according to the username they entered while signing up.
Owner of the organization can send invites to the team members using email by filling out a simple form where they need to enter the email of the team member.
Now, I would like to know how I can add the team member to the organisation's workspace so they have full access to the workspace. Basically, I don't know what to do after sending an invite.
Please give me some insights on how this can be achieved.
Thanks.
Make an array element in the your model so that contains group_ids of groups joined.
Create a middle-ware function that checks if the user can perform operations in there. If not, throw error.
When the invite is sent, the array element that I talked about should be updated to [...array, group_id selected].
I am a junior developer so might go wrong but I hope this helps.

Normal members of the group without any admin rights cannot see the facebook post done through an in-development facebook app. How can i make them?

I have followed a tutorial through which i have managed to post on a facebook group using their sdk and graph API on python, on the graph api version 11.
I created a user on facebook, gave it the admin rights of that particular group.
Created an app on facebook, in development mode.
Requested permissions through that app for posting to the relevant group as that user.
Generated extended access token for the same.
Issue: Admins of the group can see the posts, but the normal members of the group cannot.
is it an issue with the app? Does it need to be out of development for the posts created by it to be made visible to others?
Python Code snippet:
import json
from facebook import GraphAPI
access_token= 'access token here'
graph = GraphAPI(access_token)
message = 'This is a test post...hear me'
link = '' #link needs to go here
groups = ['group id here'] #group id
for group in groups:
graph.put_object(group,'feed', message=message,link=link)
print(graph.get_connections(group, 'feed'))
This is mentioned in facebook's documentation.
Whenever an app is created on facebook's developer console, in developer mode, any posts made by the app are not seen by the general public even if you are posting on public groups. Depending on the permissions and what you are trying to accomplish exactly, you might need to go through app review and through business review.
If you don't need to go through the reviews for the permission you have chosen, make sure that the app is in "Live" mode and you will be good to go.
handy feature if they were a bit upfront about it.

Docusign consent issue with 2nd user, is duplicate of 1st working

Running into a bit of an odd issue. I assume it may be a setting somewhere?
Using the API integration for embedded forms. We have two brands, so I've made two users with the same roles. Their job is to be the sender for any embedded form for their respective brand. Their roles are both set as sender from the user settings tab.
support#brand.com
support#other-brand.com
Each user is in 2 groups, developers and their respective brand. Simply being part of developers will allow them to be assigned as the sender of any API templates. It's worth noting, these two users are identical to one another in setup, only difference being support email.
Using user 1, there are no issues, and everything works as intended. Using user 2 however, I get the error "consent required" when trying to get a JWT token?
I've gone through all and any settings I could find, but nothing seems to do what I need. Both users belong to the organization, so I'm simple confused.
Any help and direction is much appreciated.
The answer was I needed to claim the #brand URL the 2nd user was under, which had not been claimed via the application admin interface.
Consent is per user, you would need the second user to log in and navigate to the URL For consent.
If you are using the developer/sandbox/demo environment (not production) the URL you would want to set looks like this:
https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature%20impersonation&client_id=<your IK>&redirect_uri=<some URL you defined for the IK>
Remember to define the redirect_uri in the Apps and Keys page in the settings page where you created the Integraiton Key and you should be good.

Read company feed through linkedIn API

I am trying to read my LinkedIn company feed through LinkedIn API.
I have created app in LinkedIn and got
clientID,
client secret code and
Access Token.
I tried different URL but getting same error:
https://api.linkedin.com/v2/organizations/{organizationID}
https://api.linkedin.com/v2/company/companyID
I am getting error message
Not enough permission to access: get /organization/organizationID
I am admin of my company.
I have following permission for my apps:
r_emailaddress
r_liteprofile
w_member_social
I am trying to show my linkedIn company page feed on my SharePoint page. I have to implement this solution in SharePoint 2013 and SharePoint O365.
I request anyone if could help or let me know if I am doing some thing wrong or how to proceed with next step.
This has been answered here:
How can I change a LinkedIn app's permissions?
Short answer: You must apply to the Marketing Partner Program.
LinkedIn has made a lot of changed to their API over the past few months. Check out the latest permission changes relevant to this post:
https://learn.microsoft.com/en-us/linkedin/shared/references/migrations/marketing-permissions-migration
EDIT: Confirmed. I didn't receive a notification that I was approved through the process above, however, it's 30 days later after applying and I just noticed there was a new product available under "Products" once you are logged in and on your App in the developer portal. You have to add the "Marketing Developer Platform" product from there, and once again fill out an application:
After completing the new application, they say they will provide you with confirmation within 90 days.

Adding Social Login to Shopify

I wish to add Social Login feature to a Shopify store that I am building. (I'm using the professional plan.)
I explored a few of the available social-login apps on the Shopify App Store. Upon studying closely as to how they actually work - I have come to the following understanding of the general scheme being followed by all of them.
The Shopify shop owner sets up a social app (e.g. Facebook app) with their store identity, but configures the Callback-URL/Redirect-URL to one supplied by the App author (i.e. pointing to their infrastructure).
Upon successful login by a shop customer on the social platform (via a link/button inserted on the shop login page), the request gets redirected to the App.
The App retrieves the user's email address from the their social profile (that they now have access to).
They then lookup their own database to see if this is an existing customer. If so they go directly to step 7 below.
If it's a new customer, they use Shopify API to create a new 'customer' on the target Shopify store. They set the customer up with a randomly generated password.
At the same time they also make an entry of this customer account (email + generated password) in their own database.
They then redirect the request back to the Shopify store's login page but this time with the customer's email address (retrieved from social platform) and their password (from the App's own database) included as part of the data that comes back to the users browser as part of loading the login page.
Then the App's javascript embedded on the shop login page uses the customer email address and password to programmatically submit the login form - thus establishing a valid customer session on the Shopify shop.
My questions are as follows:
Has someone else also looked closely in to this, and thus can validate if my above understanding is correct or not?
If it is correct - is this the only way to achieve social login on Shopify (without using Shopify Plus/Enterprise plan)?
I am trying to understand if this indeed is the only way, because I strongly feel that this method is not at all secure. And thus I'd rather not use this method; or if I just have to - then I'd rather write my own (private) app for this so that at least I am in control of the security of the app/database that holds sensitive users credentials.
Would appreciate any help/thoughts I can get with this, please.
If you are rolling your own you probably want to look at Multipass. It would be the thing to use if you can set up another web service that handles the trusted partner registration process.

Resources