Change in SharePoint DNS breaking remote authentication code through office 365 login

Hi,
I have a website that connects to a SharePoint online site in order to access content from there. The authentication is done through the Office 365 login. In order to do that, I composed the following URL:
"https://login.microsoftonline.com/login.srf?wa=wsignin1.0&rpsnv=3&rver=6.1.6206.0&wp=MBI&wreply=https://www10226.sharepoint.com/_layouts/15/landing.aspx?Source=" + window.location
so that the window.location is returned to after the authentication is done. It worked so far, but today I encountered the following problem: https://www10226.sharepoint.com now says page cannot be found, DNS lookup failed. Apparently the correct
address is now https://www10501.sharepoint.com . Does anybody know about this sort of change? Is it a one time thing or it happens on a regular basis? How can I get the right DNS dynamically so my code won't be affected by changes like this
one in the future?
Any help is highly appreciated.

Hi, Jason, and thank you for the answer.
I am not the global administrator. The problem is that I want an universal problem for any SharePoint Online site that will be accessed by the users - A link like the one above, authenticating the user to SharePoint Online via Office 365 and then returning
to my website.
I composed the URL above by simply looking at what redirects Office 365 does when I try to log in into my SharePoint Online site. At that moment I understood that wreply=https://www10226.sharepoint.com/_layouts/15/landing.aspx
was an universal authentication endpoint, but then the address changed and it was https://www10501.sharepoint.com,
and currently it is https://www10706.sharepoint.com
. I am confused by these changes. Do you mean to tell me that this part www10706 is specifically only to one SharePoint Online site and that if you tried to authenticate to a different SharePoint address than mine, it wouldn't work? If so, how should
the URL be in order to achieve what I want, authentication and returning to website, having the security token attached to the request?
I came across this article http://community.office365.com/en-us/w/domains/sharepointcname.aspx, but I am unsure whether it has to do with the changes I am experiencing. I tried putting the SharePoint address inputted by the user in the wreply parameter
(such as wreply=https://www.ALIAS.sharepoint.com) but after
the authentication it just remains on the SharePoint page, without returning to my website.
Please advise, I need to find a solution to this.
Cheers!

Similar Messages

  • How to Enable Ratings on SharePoint List using Client Object Model for Office 365 SharePoint Site.

    How to Enable Ratings on SharePoint List using Client Object Model code for Office 365 SharePoint Site.
    Thanks in Advance
    Rajendra K

    Hi Rajendra,
    here you are the code and the blog, let me know if this helps
    using (ClientContext ctx = new ClientContext(https://yourSiteUrl))
    Web w = ctx.Web;
    List l = w.Lists.GetByTitle("yourListName");
    ctx.Load(l, info => info.Id);
    ctx.ExecuteQuery();
    string ListID = l.Id.ToString();
    Microsoft.Office.Server.ReputationModel.Reputation.SetRating(ctx, ListID, 1, 5);
    ctx.ExecuteQuery();
    http://blogs.technet.com/b/speschka/archive/2013/07/08/how-to-use-csom-with-ratings-in-sharepoint-2013.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • SharePoint Designer 2013 cannot access workflows in Office 365 Site

    I have an Office 365 SharePoint site with a number of workflows that I have created on my machine with SPD 2013. After a number of weeks I was unable to access the workflows from my machine through SPD (while still being able to access pages, site assets
    etc.), getting the following error: (Am restricted from submitting images)
    "Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities"
    Restarting SPD doesn't help, after clicking OK I get the "SharePoint Designer cannot display the item" screen, prompting me to refresh. 
    When I do refresh, I get the following:
    "Windows Workflow Foundation, part of .Net Framework 3.0, must be installed to use this feature"
    This is happening on my machine, Windows 7 64 Bit, SPD 2013 64 Bit, but on a colleague's machine, Win 7 64 Bit, SPD 2013 64 Bit I can access the workflows. 
    I get the same error if I try to create a new Workflow on my machine but I can create it on my colleague's machine.
    I downloaded SPD 2013 on a 32 bit laptop I have access to, in which I can create a workflow. One existing workflow can be accessed, updated etc. with no issue, one opens to a prompt to "Insert a stage" and one tells me that it "Failed to load
    the workflow definition for the workflow", then the "SharePoint Designer cannot display the item" screen. All of these workflows can be accessed from my colleague's machine.
    Here are the actions that I have taken to date on my own machine:
    Cleared the caches multiple times
    Checked for updates
    Installed .Net Framework 4.5
    Re-installed .Net Framework 4.0 (which contains 3.0)
    Uninstalled and re-installed SPD 2013 
    Due to issues with a workflow on the site I am in contact with MS Support who are aware of this issue, they sent me a link to a hot fix that was already installed but they have no concrete idea of what might be going on.
    I was convinced that it was an issue on my machine, but I don't know what the issues that I have seen on the 32 bit SPD on the new laptop mean.
    I have been searching the internet for a fix with no success, I would appreciate any help.
    Thanks
    Mick

    Hi,
    According to your post, my understanding is that SharePoint Designer 2013 cannot access workflows in Office 365 Site.
    There was an issue recently when a service release was implemented that incremented the version number in the HTML header on some SharePoint online sites to '16' when SPD was expecting '15'. 
    I suggest to install internet explore 10 and install a patch for IE10. Then test with "open with windows explore" then opened in SPD from sharepoint online.
    In addition, I suggest that in SPD go to Account > Switch Account and type in the credentials of the site you are trying to open (it defaults to your Microsoft Login).
    If the issue persists, to troubleshoot this issue, you can uninstall all versions of SharePoint Designer on workstation, clear cache and then reinstalling the latest SharePoint Designer. For the detailed information, you can refer to the
    article: http://support.microsoft.com/kb/2794961
    Here are two similar threads for you to take a look at:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/15fd1436-3166-4e43-8b22-cdb480091548/cant-open-sharepoint-online-site-in-sharepoint-designer-2013
    http://community.office365.com/en-us/forums/154/t/149314.aspx?PageIndex=2
    By the way, you can also post the question in Office 365 forum and more experts will assist you.
    Office 365 forums
    :http://community.office365.com/en-us/forums/default.aspx
    More information:
    SharePoint
    Designer 2013: Server-side activities have been updated:
    http://www.andreasthumfart.com/2013/08/sharepoint-designer-2013-server-side-activities-have-been-updated/
    Best Regards,
    Linda Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Brand/ Remove Office 365 Login Page for SharePoint Online

    Hi  there,
    HAPPY NEW YEAR!
    Thank you very much for setting up this great forum. I have learned a lot of good tips from here.
    We have a challenge which we would like to find a solution to.
    We are using Project Online with SharePoint Online with Office 365.
    We are trying to find a solution to brand/ (if branding is not possible) get rid of the Office 365 log in page.
    What we are trying to achieve is:
    1. Users click on a link, say:
    https://abc.sharepoint.com/project1/
    2. Instead of seeing Office 365 login page, we would like them to be able to see the login page with our own brand or a login box to enter username and password.
    Thank you very much in advance for the time you set aside to share your knowledge with us.
    Sincerely, we really appreciate your kind help.
    Charlotte Tang
    Charlotte Tang

    Hi Charlotte,
    According to your post, my understanding is that you want to customize the Office 365 login page for SharePoint Online.
    We can implement ADFS for the Office 365 subscription, then customize the ADFS forms based on login page.
    Per my knowledge, If no ADFS you will need to use the Microsoft login page.
    Here are two similar threads for you to take a look at:
    http://community.office365.com/en-us/forums/148/t/194202.aspx
    http://community.spiceworks.com/topic/380634-o365-custom-login-page
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Can't open SharePoint site in SharePoint Designer 2013 32Bit but can open Office 365.

    Hello.  I am running Windows 8.1 SharePoint Designer 2013 32Bit (15.0.4615.1000).
    I am unable to open any sites from our SharePoint 2013 OnPremise farm. I can however open sites from our Office 365 environment.
    I get the following error.
    "An error occurred accessing your Microsoft SharePoint Foundation site files.  Authors - if authoring against a Web server, please contact the Webmaster for this servers's Web site.  WebMasters - please see the server's application event log
    for more details."
    I have looked in the event log but can't see anything relative.
    I have cleared all caches, uninstalled and reinstalled and followed recommendations in this post.
    http://community.office365.com/en-us/f/154/t/149314.aspx?PageIndex=2
    My colleague with the same setup also has this issue but another doesn't and is able to access the site. I have a Windows 7 Hyper-V VM on my machine and this can open the OnPremise sites.
    I really don't know what else to try short of rebuilding my machine which I would rather not do at the moment.
    Any help would be greatly appreciated.
    Thanks.
    Steev.

    Try changing security token service application pool password if its expired.
    Security token service application pool should be up and running to fix this issue.
    Please check :
    http://social.msdn.microsoft.com/Forums/en-US/7cf7ae15-1f58-402b-a93b-7f6a6d583169/sharepoint-designer-throwing-error-while-open-my-sharepoint-web-applicaiton?forum=sharepointcustomizationprevious
    http://www.fmsinc.com/free/NewTips/Office/frontpage.asp

  • SharePoint 2013 Newsfeeds are not same as Office 365 Newsfeeds, why? need help!

    I completed SharePoint 2013 preview server installation and configuration. When I put a YouTube link on my Newsfeeds it does not show the preview as it shows in Office 365 Preview.
    Can someone help me get those features on my SharePoint 2013 server? any help is appreciated!
    Thanks....

    Has Distributed Cache service been started in the machine SharePoint is running on? If not, it must be started before it provisions feeds. The following steps to start Distributed Cache service:
    Open Central Administration, click Application Management category.
    In Service Application section, click Manage Services on Server.
    On the Services on Server page, start Distributed Cache service.
    Or use PowerShell script:
    $instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
    $serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
    $serviceInstance.Provision()
    As far as I know feeds rely on
    Distributed Cache to store data for very fast retrieval across all entities.
    Hope this helps.
    Thuan Soldier
    SharePoint Vietnam |
    Blog | Twitter

  • Sharepoint Login Popup (Office 365 vs. Microsoft Account)

    Hello Everyone,
    We are using Sharepoint Online and I am designing the site for office use. Let me pre-face this with the fact that we do NOT use Office 365. I have been registering email accounts with Microsoft so other users can login externally. I have run into a barrier
    to adoption for my users: When they attempt to access the sharepoint site (randomdomainhere.sharepoint.com), they are met with an Office 365 login popup. There is an option at the bottom of that popup to login with a Microsoft account. Now, even though
    I have explained in great detail that this link needs to be clicked and the user login from that page, I still receive multiple users asking me to make this process easier as it often leads to mistakes or frustration on their end. What I have done to this
    point is clicked on the link, used that URL as a Trusted site, and remained logged in. In theory, as long as I click the link I get right in, but the preference would be to display the microsoft account page popup in place of the office 365 popup. This would
    potentially do one, if not both of the following:
    1. Allow my users to login using their credentials without seeing two popup pages
    2. If site was trusted and auto login was allowed, it would let users directly into the Sharepoint site
    which is the intended goal.
    I have searched for an answer to this repeatedly with no viable solution. I should also mention that I am not a developer or web designer. I am just a guy who wants to make things run smoother in my office. Please help.
    Thanks,
    Christian

    There really isn't a good solution to this issue at the moment.  MS applied this change to the Login page a few months ago and it is very confusing for external users.  MS is aware of the frustration, but the SharePoint Online group doesn't control
    that login page.  What I have done for my external users is put together an email message, with a screen shot, showing how to get to the Microsoft Account login page from the default login page.  
    #1 is the only way that works.
    #2 usually won't work since the trust sites autologin passes their workstation login.  In my experience that usually will be an internal corporate account that won't match their Microsoft account.
    The only way to really handle it at this point is through education and wait for the login page to be changed to a better external user experience.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Office 365 + Sharepoint Login page Branding + external user

    Hi,
    I have found, way to branding login page in Office-365 on this link
    http://technet.microsoft.com/en-us/library/dn532270.aspx 
    Is branding is possible to log-in in office 365 share point  of Organization accounts  and as well as external user also log-in through custom branding log-in page?
     i have required custom branding for office 365 login page for external user??
    please suggest me to full fill my requirement.
    Thanks in advance
    anuj

    Hi,
    According to your post, my understanding is that you want that external user log-in through custom branding log-in page.
    You don’t need to custom branding for office 365 login page for external user.
    You can custom solution to capture user credentials and pass them to master login page.
    Please refer to the official article related, hope you could find something useful from it:
    Remote Authentication in SharePoint Online Using Claims-Based Authentication
    Remote Authentication in SharePoint Online Using the Client Object Model
    Authentication with
    SharePoint Online and the Client Side Object Model
    Regarding Office 365, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do I add SRV record to my DNS for Office 365?

    How do I add the following record?
    Add the SIP SRV record for Lync web conferencing.
    Create a new SRV record.
    In the new record, make sure that the fields are set to precisely the following values:
    Record Type: SRV
    Service: _sip
    Protocol: _tls
    Port: 443
    Weight: 1
    Priority: 100
    TTL: Set this value to 1 hour or to the equivalent in minutes (60), seconds (3600), etc.
    Name: @
    Target: sipdir.online.lync.com
    Save the record.
    Need help ASAP because my clients Email is down when I changed Domain Name Servers to Business Catalyst.
    All Office 365 functions were lost.
    Thank you for some assistance - URGENT,
    Jim Vernon
    Hopegate Software

    Here is an image of the settings that Office 365 says i need to correct in my DNS settings on Business Catalyst:

  • Search SharePoint 2013 On-Prem with Office 365

    We're trying to understand federated search in SharePoint 2013, when it comes to Office 365. We have both a SharePoint 2013 on-prem environment, and an Office 365 environment. The 2 are completely separate, and have not been configured to use a hybrid model.
    Is it possible to configure a Result Source in either the SharePoint environment or the Office 365 environment to index the other? Reading this
    article from Technet, it indicates that you can configure a remote SharePoint farm as a Result Source:
    "Remote SharePoint provides
    results from the index of a search service in another farm."
    But I've read on another
    thread on here that this is not possible from O365. 
    I'm hoping that someone can provide some guidance, or point me in the right direction.
    Thanks,
    cflbasser

    Yes, you can receive search results from an on-premise SharePoint Server 2013 farm within SharePoint Online.
    Hybrid search between SharePoint Server and SharePoint online uses federated search results. Neither the on-premise farm nor SPO crawl the other location, they just send a federated search query over the fence and wait for the results.
    You can search in either direction (one-way hybrid search) or both ways (bidirectional hybrid search).
    The one-way search can either be SharePoint Server sending search queries to SPO or SPO sending queries to SharePoint Server which also needs a reverse proxy for securely publishing your on-premise farm to SPO.
    Bi-directional hybrid search just combines both one-way methods together so either location can receive search results from the other location.
    Here are some further resources to help you plan and implement hybrid search:
    Hybrid for SharePoint Server 2013 
    Configure hybrid Search for SharePoint Server 2013 
    Chris O'Brien has an excellent article that describes the actual search experience. Check out Office 365 SharePoint hybrid - what you
    DO and DO NOT get 
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Office 365 online Sharepoint (Business Premium) - pre-build intranet site that can be installed

    Hello, 
    Is their any possibility to setup in the new Office 365 online a SharePoint with a pre-build intranet website?
    Those options exists in many intranet systems. Example: in Bitrix24 their is possebility to start with a theme for intranet site. The basic theme includes: Several internal departments (Management, IT, Sales, HR ect), tasks by deparment, users groups (by
    department) with permissions for each departments, news feed by department ect. 
    Is their any pre-build option with a simple intranet configuration?
    Sometimes it is much easier to configure when using a common simple company structures. 
    Thank you

    Hi,
    For SharePoint Online backup and restore, there are basically 4 options:
    Use the recycle bin and version history.
    Use a 3rd party tool for backup and restore (there are several).
    Manually backup sites, lists, and libraries (see:
    Information about manual migration of SharePoint Online content and
    How to back-up an Office 365 SharePoint Online site and data)
    Create an Office 365 support request (see:
    Restore options in SharePoint Online)
    For more information,you can have a look at the blog:
    http://www.threewill.com/the-4-options-you-need-to-know-about-sharepoint-online-backup-and-restore/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Programs to copy Sharepoint Online to Sharepoint Online (Office 365)

    Hi there,
    I want to copy a sharepoint site collection in Office 365 SharePoint to a new site collection in Office 365 SharePoint. Can anyone recommend me a good program to do this? I know there are a lot out there and have trialled two of them but they were just too
    slow. The site is 3GB which isn't huge but one of the programs was taking days at doing this.
    I'd also like to use the program for migrating our old WSS SP site to Office 365 SharePoint some time down the track.
    Thanks for your help.

    Hi,
    I recommend you to use the metalogix tool which migrates the data from any source(MOSS 2007, SP 2010, SP 2013 or Office 365) to target(SP 2010, SP 2013 or Office 365).  I am using this tool, it took me 1.5gb data move to 1.5 hours.
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • What's the difference between SharePoint 2013 and Office 365 Team Sites?

    Hi there,
    What are the differences between SharePoint 2013 and Office 365 Team Sites?
    If I would like to develop a professional corporate website with SharePoint technology (because the company allready uses Office 365), do you recommend using SharePoint 2013 (in the cloud) or Office 365 Team Sites? And why?
    Thank you very much!

    You cannot make SPO Team Sites anonymous-enabled, therefor they're a moot point for a public website.
    While slightly out of date, take a look at this:
    http://nikpatel.net/2013/01/17/new-sharepoint-2013-wcm-features-are-not-available-in-sharepoint-online-2013/
    http://technet.microsoft.com/en-us/library/sharepoint-online-content-service-description.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Powershell Error for SharePoint Online -"The remote server returned an error: (407) Proxy Authentication Required."

    I am trying to call sharepoint online from powershell. Below is the code. I get 
    Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
    $loadInfo1 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
    $loadInfo2 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
    $webUrl = "ZZZZ"
    $username = "XXX"
    $password = "YYYY"
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) 
    $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
    $web = $ctx.Web
    $lists = $web.Lists 
    $ctx.Load($lists)
    $ctx.ExecuteQuery()
    $lists| select -Property Title
    Raj-Shpt

    Hi,
    About how to access SharePoint online site using PowerShell, the blog below would be helpful:
    http://social.technet.microsoft.com/wiki/contents/articles/29518.csom-sharepoint-powershell-reference-and-example-codes.aspx
    Another two demos for your reference:
    http://www.hartsteve.com/2013/06/sharepoint-online-powershell/
    http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error in Application.Run(DisplayLoginForm) and Remote Authentication in SharePoint Online Using the Client Object Model

    Hi guys
    I Think that is a simple error, but I don’t have enough knowledge in .NET apps.
    I make an console app that use Remote Authentication in SharePoint Online Using the Client Object Model, that a I downloaded from MSDN.
    This App run ok.
    But when I like to make a Windows From App. This component send me an error in Application.Run(DisplayLoginForm)
    This err msg :
     An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
    Additional information: Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
    Is there any way to use a form inside a windows form?
    Thank in advance
    Ramiro
    Ramiro B

    Hi,
    Based on the error message, please do as following:
    1. Check your code logic below:
    void btn_Click(object sender, System.EventArgs e)
    Thread t = new Thread(StartMyForm);
    t.TrySetApartmentState(ApartmentState.STA);
    t.Start();
    public static void StartMyForm()
    Application.Run(new MyForm(..));
    2.Try to add the following code line in your code.
    Application.Restart();
    If the issue still exists, please provide your requirement and code for a further research.
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • External Hard Drive No Longer on my Desktop

    The external hard drive that I use for Time Machine is no longer on my desktop. In fact, when I open up the Time Machine preferences, it does not show my external drive as available. There is power available to the external hard drive AND it is physi

  • Autoinvoice error - You must supply payment terms for your non-credit trans

    Dear all, I've this error "You must supply payment terms for your non-credit transaction" shown on AR_RA_INTERFACE_ERRORS_ALL table after ran the autoinvoice. In the RA_INTERFACE_LINES table I had inserted this value "14 DAYS" in TERM_NAME field alre

  • Reg:RG 23 A Part ii Register

    Hi Guru, Refer Enclosed word screenshot. I am testing a Import Procurement. Error has been encountered while testing RG23A Part II Register. The SHE. Cess Duty Component is getting debited (Subtracted) instead of getting Credited(Added). With referen

  • J2EE Visual Administrator - Newbie Question

    Hi, I am trying to access the J2EE Visual Administrator on a Solaris box.  I have used it succesfully on windows but don't know the name of the executable on Solaris or indeed the path to it.  I realise this is probably a fairly dumb question but wou

  • Verbal and black text announcements on OS X

    Something happened yesterday that I've never EVER seen before.  I now have a verbal (from computer) and text announcement, or "play-by-play" of EVERYTHING that happens on  my MacBook Pro.  For example, currently, there is a little black box, with whi