-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Redirect from auth to a blank page #34
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<NuxtPage /> | ||
</template> | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
// This page is used as a redirect URI for our popup login flow, see | ||
// https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/initialization.md#redirecturi-considerations | ||
|
||
definePageMeta({ | ||
layout: 'empty' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. another (maybe simpler) approach? Through an index.html in some folder in the public directory. That way nuxt could never mess this up? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did consider it, and that would also be a totally reasonable approach. I'm going to stick to this for a few reasons:
I agree there's a minor risk that something like |
||
}) | ||
</script> | ||
|
||
<template> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meganit - can we name this something clearer?
blank
has no context, and is more likely to be thought of asnew tab
etc. Very odd ms requires this - let's make the URL clear the purpose, since nothing else on the page will lol.azure-ad-redirect-destination
exThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very reasonable and sensible comment, but I'm going to stick with
/blank
for a few reasons:/blank
is their recommendation, and I've seen similar things elsewhere. Not sure how strong of a convention it is, but getting a blank page at/blank
seems reasonable.new tab
andblank
(i.e.target=_blank
)/blank