Microsoft Project Online - Rest API Get Token - rest

I want to read projects and tasks from my Laravel application from Microsoft Project Online.
I've searched everywhere and couldn't find a documentation on how to login/authenticate my users.
Users on my web app should be able to link their Microsoft Project Online site url, and authenticate to fetch their tasks.
How can I obtain a bearer token to execute REST api? Please lead me to a documentation that does so I'm lost.
Thank you

Related

Azure devops extension postinstall page

We are building an extension on azure devops board to capture time and on submit we need to sent the details to our endpoint for business use case. After the successful install of the azure devops plugin to company, we need to direct the users to our domain for reading the consent and authorize it. When the app is installed, we are getting the post request with the installed details. But since its a post request, i can't redirect the users to browser for authorization with our end point.. so, i am looking for adding a button on the install success page(attached the screenshot of it), so that user can click and authorize it after install, but i couldn't find any option for that. Can some one guide me on this? Thanks in advance.

How to create user repository via GitHub App API?

A user installed my github app for his personal account (not organization). My github app has read & write administration permissions.
When I perform the request (I use go-github sdk) I get the following error:
POST https://api.github.com/user/repos: 403 Resource not accessible by integration []
There are two different endpoints for creating repositories in organization and for user. Endpoint for creating user repos is the POST method /user/repos. When I look github official documentation on github app permissions it doesn't actually list POST method for user/repos. So it's not clear how to create user repos via github app, if possible at all.
I got a response from github support. This behaviour is expected. To create new repos under a user you have to use user-to-server token (oauth2 token). It can be acquired during installation if you enable option "Request user authorization (OAuth) during installation" in your github app. This way user not only install your github app but also will authorize your github app.

how to retrieve azure repo contributors to a web app page

I'm building a documentation site using jekyll in a azure web app. It is hosted here right now: documentation site I'm using the azure repo as a hosting. I would like to know how to retrieve the contributors to each page in the web app from the azure repo. It is the same as microsoft docs documentation is, but retrieving the information from azure repo
An example page:
Thank you in advance.

Getting profile information from tfs REST API showing Page not found

Am sure this might have been asked before.I have searched like anything not getting any information thats why i thought of posting here. any help is appreciated
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
this REST API always giving Page not found tfs2015 server using.
The REST API you mentioned is for VSTS :
https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0
For on-premise TFS (TFS 2015 in your case), you can use below REST API to get the profile information (connect to TFS first):
http://server:8080/tfs/_api/_common/GetUserProfile?__v=5

Github API v3 -- required permissions for managing deploy keys?

I have a Github App set up using their v3 API. I am successfully authenticating and I can create and modify repositories. I'm trying to also attach a deploy key to a newly created repository. However, I'm getting 403: Resource not accessible by integration -- this is regardless of whether I try to read or write the keys. The app is installed on the organization, and the repository is also owned by that same org.
The api documentation gives routes for managing deploy keys: https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key
But the permissions list doesn't mention deploy keys at all: https://developer.github.com/v3/apps/permissions/#permission-on-administration
I have turned on Read & Write access for Repository Administration, Repository Contents, and Repository Projects in the permissions for the app, but I'm still getting this access error.
That endpoint hasn't been enabled for GitHub Apps yet -- you can only use it with OAuth tokens currently (or Basic Auth).
I recommend requesting that this be added for GitHub Apps over on the Platform forum for Apps:
https://platform.github.community/c/integrations
That's the best place to ask questions and provide feedback about GitHub Apps (GitHub staff monitors that forum and answers questions).
I can add deploy keys with "Read and write access to administration" permission. (as of Jan 17, 2023)