Federated sign-in step 1: redirect to Microsoft Entra ID or Google.
POST
/oauth/federated/{provider}
const url = 'https://api.contentsurface.io/oauth/federated/entra';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.contentsurface.io/oauth/federated/entraPosted by the sign-in page’s Sign in with Microsoft or Sign in with Google button: sends the browser to the provider. Offered only for the providers and directories the tenant allows. Not for applications.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
entra (Microsoft) or google.
Example
entraResponses
Section titled “Responses”OK