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 390357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:57:24+00:00 2026-05-12T15:57:24+00:00

Google have a very nice user friendly federated OpenID login with automagic endpoint discovery:

  • 0

Google have a very nice user friendly federated OpenID login with automagic endpoint discovery:

  • http://www.puffypoodles.com/lso2

This is implemented in Java Servlets, is there a PHP equivalent that can be used in conjunction with php-openid?

The discovery mechanism, XRDS, is covered in the following document:

  • groups.google.com/group/google-federated-login-api/web/openid-discovery-for-hosted-domains

It would appear something like “DiSo’s XRDS-Simple” should work but basic testing doesn’t provide useful results.

  • code.google.com/p/diso/

Thanks,

  • 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-05-12T15:57:24+00:00Added an answer on May 12, 2026 at 3:57 pm

    Ok I found it’s relatively straightforward to modify the XRDS-Simple implementation to support Google’s Host-Meta discovery mechanism. The caveat being this is an experimental discovery mechanism within Google’s namespace and should change sometime later to something more suitable for a globally independent system.

    Patch for XRDS-Simple:

    • http://pastebin.com/f428fac98

    Example usage for finding Identity URL to feed into PHP-OpenID:

    <?php
    
    require_once 'XRDS.php';
    require_once 'XRDS/Discovery.php';
    
    $domain = 'google.com';
    
    $disco = new XRDS_Discovery();
    $disco->discovery_methods = array('XRDS_Discovery_Host_Meta');
    $xrds = $disco->discover('https://www.google.com/accounts/o8/.well-known/host-meta?hd=' . $domain);
    
    $xrd = $xrds->xrd[0];
    $identityUri = $xrd->service[1]->uri[0]->uri;
    
    if (0 == strcmp($xrd->canonicalId, $domain)) {
        echo "identity uri: $identityUri\n\n";
    } else {
        echo "discovery failed.\n\n";
    }
    
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very basic html, supposingly <html> <body> <iframe src=http://www.google.com> <p>Your browser does
I have something very similar to this example: https://developers.google.com/maps/documentation/javascript/examples/directions-simple All I am trying to
I have looked for something like this on Google and on this very site,
i have google Maps and when the user touch any point in the map
I have a very nice web app (HTML5, javascript,CSS) running on my website. It's
Does Google have an API for registering hooks/callbacks for whenever a document is updated?
I have google'd it, and tried some examples, but I always get stuck. This
I have google analytics on my site. One page has a button which when
I have google adsense in a block, and I want to hide the block
I have google analytics set on a site I'm working on, It has a

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.