vue-authenticate icon indicating copy to clipboard operation
vue-authenticate copied to clipboard

Allow for non-pop login screen

Open ajmas opened this issue 2 years ago • 6 comments

Based on what I see in options.js and playing around with the display option, it does not current seem to be possible to force a non-pop-up authentication flow. This can be an issue for flows where a pop-up is not suitable.

ajmas avatar Dec 09 '21 05:12 ajmas

Since we lose the logic around the pop-up, maybe having an option to store state in session storage and then on page load have a continueAuth() call, which behind the scenes:

  • takes the page URL , as the pop up does
  • any state stored in session storage
  • the provider id

Maybe there is another approach?

ajmas avatar Dec 12 '21 03:12 ajmas

Agree. We have issues integrating this lib if the app is shown in restricted webview of a mobile app for example

@ajmas how did you resolve that back then?

tomastan avatar Mar 05 '24 13:03 tomastan

@tomastan I ended up forking the project, but I'll need to look at my code to remind myself.

ajmas avatar Mar 14 '24 01:03 ajmas

@tomastan I just looked through the code and right now there isn't an alternative to the popup. Looks like some code rework is needed to provide that possibility. I'll create a ticket for this.

ajmas avatar Mar 23 '24 01:03 ajmas

@tomastan I just looked through the code and right now there isn't an alternative to the popup. Looks like some code rework is needed to provide that possibility. I'll create a ticket for this.

Let me follow your fork then ;) Unfortunately as I understand it is Vue 3 only, while our codebase is not yet migrated. Plus if you said, popupless flow is not there, so likely we need to look for a temporary workaround.

tomastan avatar Mar 23 '24 13:03 tomastan

It is Vue 3 only. I made the choice because of our own project requirements and I couldn’t work out how to make it support both.

ajmas avatar Mar 23 '24 19:03 ajmas