phpSPO icon indicating copy to clipboard operation
phpSPO copied to clipboard

How can we use this library for sharepoint <NameSpaceType>Managed</NameSpaceType>

Open harneetevontech opened this issue 5 years ago • 1 comments

Hi All, I am trying to integrate this library to my laravel 6.x code.

I have Microsoft SharePoint credentials for user who have access to a "specific site" within and whose role is "admin".

Error :- Symfony\Component\Debug\Exception\FatalThrowableError Call to a member function getContent() on null Because it cannot find "//STSAuthURL" through $xpath->query("//STSAuthURL")

As I went through the code the Auth seems to be based on "Federated"

For more info, when I run the following URL manually, it showed me the following information https://login.microsoftonline.com/[email protected]&xml=1

Output <RealmInfo Success="true"> <State>4</State> <UserState>1</UserState> <Login>[email protected]</Login> <NameSpaceType>Managed</NameSpaceType> <DomainName>XXXX.co.uk</DomainName> <IsFederatedNS>false</IsFederatedNS> <FederationBrandName>ABCD Group Ltd</FederationBrandName> <CloudInstanceName>microsoftonline.com</CloudInstanceName> <CloudInstanceIssuerUri>urn:federation:MicrosoftOnline</CloudInstanceIssuerUri> </RealmInfo>

My objective to access a folder and download files which I can send to users as an attachment.

Thanks

harneetevontech avatar May 06 '20 10:05 harneetevontech

@harneetevontech ~~ Did you find solution?

aman90attari avatar Jun 09 '20 06:06 aman90attari