I’m having a weird issue with the login layout of Auth0 in Ionic2. I can’t customize the layout as I did with Angular2.
Angular 2 Code:
lock = new Auth0Lock(Auth0Vars.AUTH0_CLIENT_ID, Auth0Vars.AUTH0_DOMAIN, {
auth: {
language:"es",
languageDictionary:{
title: "Iniciar",
passwordInputPlaceholder: "Password"
},
allowedConnections: "prdad"],
avatar: null,
closable: false,
params: {
scope: 'openid offline_access employeeID sAMAccountName name email picture'
},
rememberLastLogin: false,
theme: {
logo: './../../img/icon_reverse.png',
labeledSubmitButton: false,
primaryColor: '#00827C'
}
}
});
Ionic 2 code:
lock = new Auth0Lock(Auth0Vars.AUTH0_CLIENT_ID, Auth0Vars.AUTH0_DOMAIN, {
auth: {
language:"es",
languageDictionary:{
title: "Iniciar",
passwordInputPlaceholder: "Password"
},
allowedConnections: "prdad"],
avatar: null,
redirect: false,
closable: false,
params: {
scope: 'openid offline_access nickname sAMAccountName profile employeeID name email picture',
device: 'my-device'
}
sso: false,
theme: {
logo: './../../img/icon_reverse.png',
labeledSubmitButton: false,
primaryColor: '#00827C'
}
}
});
As you can see, both configurations are quite similar, but do not show the same results. In the case of ionic, I’m not getting the Theme, some Scopes and language configuration sets.
Unfortunately in the Auth0 documentation for Ionic2 there’s no much info about it.
Regards