We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great t allow external login page on local provider.
provider: { type: 'local', pages: { login: 'http://my-external-login-page', }, },
Currently this triggers an error : Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })
Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })
Changing the auth.js middleware to check if authConfig.provider.pages.login is an external link
auth.js
authConfig.provider.pages.login
const external = /^https?:\/\/\S+/.test(authConfig.provider.pages.login) return navigateTo(authConfig.provider.pages.login.path, { external });
The text was updated successfully, but these errors were encountered:
Hi, that solves my problem too. It would be interesting to have that check.
Sorry, something went wrong.
enh(#935): allow external login page (#936)
b1e4aba
* allow external link as login page * allow external login page * fix typecheck * chore: adjust the external handling --------- Co-authored-by: Thomas <thomas.philippot@labo-mylab.fr> Co-authored-by: Zoey <zoeykaiser8@gmail.com> Co-authored-by: Marsel Shaikhin <phoenix.apps@yahoo.com>
Successfully merging a pull request may close this issue.
Describe the feature
It would be great t allow external login page on local provider.
Currently this triggers an error :
Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })
How would you implement this?
Changing the
auth.js
middleware to check ifauthConfig.provider.pages.login
is an external linkAdditional information
Provider
The text was updated successfully, but these errors were encountered: