Closed zubairk14 closed 1 year ago
Maybe something custom or unusualy is configured. If it can't be resoled automatically, what if to provide ADFS URL?
I have no SPO with ADFS configured by hand to check. If you have a chance to give me a temporary access to an empty site collection. I can take a look. Yet, please don't publish creds publicly and email me instead.
And are you actually sure you have ADFS configured? It's unlikely you'd have .onmicrosoft.com
account with ADFS. So another assumption is what you need is SAML.
Going to close this.
Describe the bug If ADFS Url is empty (which is documented as not required in SharePoint Online) auth fails with
":///adfs/services/trust/13/usernamemixed": missing protocol scheme
in func adfsAuthFlow https://github.com/koltyakov/gosip/blob/bc92c0983a11a7c720226b73859d26b6716be39d/auth/adfs/helpers.go#L77 since domain/host/scheme is empty.I tried plugging in my regular SharePoint Online domain in adfsurl, but then I received
dial tcp: lookup adfs: no such host
Unless I'm missing something, it appears that SharePoint Online ADFS Auth will only work if adfs link passed in.
Versions SharePoint Online
To Reproduce Steps to reproduce the behavior. Code sample, or a clonable temp repository link with scaffolding instructions. sample credentials used for adfs auth strategy
and
while importing auth/adfs as my strategy
Expected behavior authentication to occur with credentials matching format of documentation
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.