everyauth icon indicating copy to clipboard operation
everyauth copied to clipboard

Using Internal/Private attributes with OpenID

Open jsloyer opened this issue 12 years ago • 0 comments

I am using OpenID with an Open ID Provider in my Enterprise and would like to use internal/private attributes in the attributes exchange. If I use an internal attribute the response comes back with the incorrect attribute name.

Any ideas or thoughts?

everyauth.openid .myHostname('http://' + os.hostname() + ':' + port) .simpleRegistration({ "nickname" : true , "email" : true , "fullname" : true , "country" : true , "dn" : true }) .attributeExchange({ "http://axschema.org/contact/email" : "required" , "http://axschema.org/namePerson/friendly" : "required" , "http://axschema.org/namePerson" : "required" , "http://axschema.org/namePerson/first" : "required" , "http://axschema.org/contact/country/home": "required" , "http://www.mycompany.com/axschema/provider/dn" : "required" }) .openidURLField('https://mycompany.com/provider') .findOrCreateUser( function(session, openIdUserAttributes) { console.log(openIdUserAttributes); var promise = this.Promise(); AuthFactory.findOrCreateByOpenIDData(openIdUserAttributes, promise); return promise; }) .redirectPath('/app');

Here is the openIDUserAttributes that are returned.

{ authenticated: true, claimedIdentifier: 'https://mycompany.com/provider/[email protected]', email: '[email protected]', fullname: 'Jo User', country: 'us', firstname: 'Jo', req5: 'cn=Jo User,ou=person,o=mycompany,c=mycountry' }

jsloyer avatar Sep 19 '12 13:09 jsloyer