Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9253779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:18:16+00:00 2026-06-18T11:18:16+00:00

We have used Remote Authentication to SharePoint Online to access a target O365 sharepoint

  • 0

We have used Remote Authentication to SharePoint Online to access a target O365 sharepoint site and retrieve the FedAuth and rtFA cookies. This works fine for a target url having a xxx.sharepoint.com domain. Now if this domain has been customized to example.com, the authentication mechanism fails throwing the error – “The partner DNS used in the login request cannot be found”. Is there a way we can authenticate against a sharepoint online site whose domain has been customized to not reflect .sharepoint.com. ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:18:17+00:00Added an answer on June 18, 2026 at 11:18 am

    As I understand, the custom domain for SharePoint no longer remains claims aware.
    So, if you really want to get the cookie, the solution won’t be very ideal but some hacky stuff.
    Given the number of limitations from Microsoft, there is no direct solution to this problem but screen scrapping. I succeeded and could get the fedAuth cookie via screen scrapping.
    I know, its not very easy but it is very much possible. It will require you to make around 6 web request to the SharePoint portal.

    • First one is a web request to the custom domain.

    • Second, Get the value of “X-Forms_Based_Auth_Required” from response headers, and make request to it.

    • Third, fetch the value of SetCookie(rps context cookie) and Location from the response header, and make request to Location.

      • Fourth, get the value of SetCookie, “srf_uPost”, “PPFT” and make request to ResponseUri of the response. Set the value of Cookie and ppft in the request header and make request to value of “srf_uPost”. Also include “login=” + username + “&passwd=” + password in the request stream.

      • Fifth, get value of “action” element and “T” element from html. And make request to url that you got from value of action element. Include element T as poststring.

      • Sixth, repeat the fifth step, and you’ll get fedAuth cookie in response this time.

    You should easily be able to get through, however if you want you can find all the code in my blog

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used sp_addlinkedserver to access the remote machines db now i am writing
I have used this site before with great success and I am having a
If I have a password variable that is used for remote SSL authentication, is
I have used Naming.rebind(rmi://localhost:1099/RmiServer, c); where c is a remote object. And XYZ robj=new
I have used some jquery components in my web site, Suddenly i'm getting an
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
Hello guys i have an website online wich access the database. The database access
I need to determine if a remote file exists or not. I have used
I have used WMI to get the remote server disk space report using widows
Previously, I have used Tk/Expect along with plink (PuTTY) to automate remote shell operations.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.