Skip to content

Commit

Permalink
Added test for google apps for domains.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylang authored and havard committed Feb 23, 2011
1 parent 0cb2c56 commit cc98543
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/openid_integration_tests.js
Expand Up @@ -138,6 +138,18 @@ exports.testImmediateAuthenticationWithGoogle = function(test)
});
}

exports.testImmediateAuthenticationWithGoogleAppsForDomains = function(test)
{
// domain must be a valid google apps domain with openid enabled.
openid.authenticate('https://www.google.com/accounts/o8/site-xrds?hd=opower.com',
'http://example.com/verify', null, true, false, function(url)
{
assert.ok(url.indexOf('checkid_immediate') !== -1);
test.done();
});
}


exports.testSetupAuthenticationWithGoogle = function(test)
{
openid.authenticate('http://www.google.com/accounts/o8/id',
Expand Down

0 comments on commit cc98543

Please sign in to comment.