Good Afternoon,
I have a problem with my app.
I login sucess, but not return app.
Config.XML
<preference name="AndroidLaunchMode" value="singleTask" />
widget id=“io.ionic.starter”
plugin name=“cordova-plugin-customurlscheme” spec=“4.4.0”
variable name=“URL_SCHEME” value=“io.ionic.starter”
variable name=“ANDROID_SCHEME” value=“io.ionic.starter”
variable name=“ANDROID_HOST” value=“sandovalchrist.auth0.com ”
variable name=“ANDROID_PATHPREFIX” value=“/cordova/io.ionic.starter/callback”
plugin
// auth.config.ts
export const AUTH_CONFIG = {
clientID: ‘XXXX’,
clientId: ‘XXX’,
domain: ‘sandovalchrist.auth0.com ’,
packageIdentifier: ‘io.ionic.starter’
};
APP:Component.ts
import Auth0Cordova from ‘@auth0 /cordova’;
this.platform.ready().then(() => {
(window as any).handleOpenURL = (url: string) => {
Auth0Cordova.onRedirectUri(url);
}
});
Page Setting:
Allowed Callback URLs: io.ionic.starter://sandovalchrist.auth0.com/cordova/io.ionic.starter/callback
Allowed Logout URLs: io.ionic.starter://sandovalchrist.auth0.com/cordova/io.ionic.starter/callback
Allowed Origins (CORS): http://localhost:8100 , file://*, http://localhost/
Help please.
1 Like
I see two related Github issues:
opened 03:50PM - 27 Mar 17 UTC
closed 03:54PM - 27 Mar 17 UTC
Lock throws warning even if `sso`, `popup` or `popup_options` are not set.
Same… issue as https://github.com/auth0-samples/auth0-jquery-samples/issues/28, https://github.com/auth0-samples/auth0-javascript-samples/issues/1 and https://github.com/auth0-samples/auth0-react-samples/issues/1. Creating duplicate here because seems it's because lock send this options even if they are not set.
- Code snippet or sample project that reproduces the bug
```
var lock = new Auth0Lock(AUTH0_CLIENT_ID, AUTH0_DOMAIN, {
oidcConformant: true,
autoclose: true,
auth: {
redirectUrl: AUTH0_CALLBACK_URL,
responseType: 'token id_token',
audience: 'https://' + AUTH0_DOMAIN + '/userinfo'
}
});
```
- Screenshots when appropriate

- Lock version - 10.11 (using 10.13 warning says only about one parameter `sso`,
[screenshot](https://cloud.githubusercontent.com/assets/1114365/24365166/ac350ea6-131d-11e7-8594-7ceccfeea221.png))
- Browser & OS - Chrome 56.0.2924.87, Windows.
opened 05:01PM - 06 Mar 17 UTC
closed 07:00PM - 20 Dec 17 UTC
(AUTH-3833)
I've receiving this warning while logging in using samples.

Are you using the latest versions of the SDKs and dependencies?
(btw: @sandovalchrist Could you code-format the code, it’s hard to read and not sure where one file ends or whether it’s all in one single file. Thanks.)
1 Like
Thanks, but I dont login.
I can´t return app
npm install auth0-js
npm install --save @types /auth0-js
npm install auth0-lock
npm install angular2-jwt
Other idea?
Thanks
sandovalchrist:
Config.XML
<preference name="AndroidLaunchMode" value="singleTask" />
widget id=“io.ionic.starter”
plugin name=“cordova-plugin-customurlscheme” spec=“4.4.0”
variable name=“URL_SCHEME” value=“io.ionic.starter”
variable name=“ANDROID_SCHEME” value=“io.ionic.starter”
variable name=“ANDROID_HOST” value=“sandovalchrist.auth0.com ”
variable name=“ANDROID_PATHPREFIX” value=“/cordova/io.ionic.starter/callback”
plugin
Hi has anyone figured out the issue from @sandovalchrist ?
I have the same configuration and setup and also not getting the app to return after a successful authentication from auth0. Getting:
Uncaught ReferenceError: handleOpenURL is not defined at :1:1
I have it defined in my index.html… it works perfectly in IOS and returns to my app with the acess_code.
Any help is appreciate it.
Thanks,
Nguyen
Hola, he podido dar con el problema.-
Toda la configuracion esta bien. Lo que esta mal es la configuracion en Auth0.
Hablo de Android, no he podido verificarlo en IOS porque no tengo ningun dispositivo para testearlo.
Toda la info llega a que en la seccion de Auth: (Allowed Origins (CORS)) se coloque : file:// pero esto no funciono para mi. Si funciono con http://localhost
Despues de autenticar la pagina retorna a la APP con la informacion de redes sociales.
Espero que les sirva.
Hi I solved the issue by using the InAppBrowser plugin instead when it’s an android device.
1 Like
system
Closed
August 20, 2019, 2:20pm
7
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.