-
Notifications
You must be signed in to change notification settings - Fork 86
"Requires login" prompt? #45
Comments
@tomkersten perhaps depends on how you've set With the default value ("page"), you could store the path to the page in localStorage while the user is sent to your provider to authenticate by calling With display configured to "popup", you could invoke |
I think I may have expressed myself poorly... I have implemented the "return to where you left off" functionality and it is working as you describe. However, what I'm referring to is that when you are redirected to the AC server, it'd be nice to inform the user why they are there, instead of just landing them on the login page. In other words, somewhere "near" the login form, have a "flash" message, or something that says "you must log in to view this content"...or something to that effect. Make sense? |
Good idea. I'll put some thought into it. |
@tomkersten I'm looking through the OpenID Connect specs and I don't see anything indicating a standard way to pass this kind of message along. Without adding a non-standard feature like this to the auth server, you could solve the problem on the client side by making your own ui prompt indicating login is required and displaying an app-specific message. If the user is signing in via third party, you could skip the signin view on the auth server by displaying options that link directly to the There are definitely pros and cons to this approach. I'm not opposed to supporting an additional authorization parameter, but I'd like to know if we can achieve a satisfactory experience in practice without it. Please let me know what you think. |
Hmm. I'm not sure right now. This isn't a huge thing at the moment, because we aren't exposing the service to a broad range of people. A client-application could do this, but it would likely degrade the overall experience, as far as I can tell. However, for now, let's close the issue, try to address it purely on client-side as you state, and see how it goes. If things bubble up, we'll talk more then. |
When going to a "protected page" on a client application, you generally want to forward the person to the login page with a message to the effect of "You must sign in to see this content."
Any ideas on how we can accomplish this with the anvil-connect server?
The text was updated successfully, but these errors were encountered: