Return Types
{column:padding=0px|width=80px}{column}{column}{column}
Method Summary
createAuthenticateRequest(identifier, callbackFunction)
Redirect to openID provider to login, callback method will recieve answer.
{column:padding=0px|width=100%}{column}
Method Details
createAuthenticateRequest
(identifier, callbackFunction)
Redirect to openID provider to login, callback method will recieve answer.
Since
Replace with version info
Parameters
identifier
callbackFunction
Returns
[JSAuthenticateRequest]
Also see
External links
Sample
var authenticateRequest = plugins.openid.createAuthenticateRequest('https://www.google.com/accounts/o8/id',openIDLoginCallback); authenticateRequest.addAttributeRequest('email','http://axschema.org/contact/email',true); //see http://www.axschema.org/types/ for more attributes, not all are supported by all providers! authenticateRequest.execute(); //sample //function openIDLoginCallback(identifier,authenticateResult) //{ // var ok = false; // if (identifier) // { // var id = identifier.substring(identifier.lastIndexOf('=')+1) // application.output('id:'+id) // var email = authenticateResult.getAttributeValue('email') // application.output('email:'+email) // ok = security.login(email, id, ['Administrators']) // } // if (!ok) // { // application.output('Login failed') // } //}