How can i extend login with additional informations?
My user need to feed some additional informations (his location) after login has already be done with success. But, in idsrv4 i dont found a point to make this extensions.
There is a way where i can made such thing? In idsrv3 we have partial login do such things.
Any thoughts?
Partial logins are gone because now you are 100% responsible for the UI. You use the various Interaction classes or the action result classes to redirect back into IdentityServer. See the sample host project to get started. Also, details are subject to change :)
Ok. Thank you.
Is this the sample you mentioned @brockallen?
Is there any more sample code on this? I am planning to port to IdSrv4 but the partial login is gone and I need some hint how to now securely implement that functionality.
Just look at our sample UI - and it will be obvious
https://github.com/IdentityServer/IdentityServer4.Quickstart.UI
@leastprivilege would you say this approach suggested on stackoverflow is suitable?
http://stackoverflow.com/questions/40609585/how-to-do-multiple-step-login-in-identityserver4
He is using a cookie to pass information between steps... I'm just not sure if using the SignInAsync and AuthenticateAsync is appropriate.
Looks reasonable
Dominick Baier
On 24 February 2017 at 17:53:40, Piers Lawson ([email protected]) wrote:
@leastprivilege https://github.com/leastprivilege would you say this approach suggested on stackoverflow is suitable?
http://stackoverflow.com/questions/40609585/how-to-do-multiple-step-login-in-identityserver4
He is using a cookie to pass information between steps... I'm just not sure if using the SignInAsync and AuthenticateAsync is appropriate.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IdentityServer/IdentityServer4/issues/13#issuecomment-282342574, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYv-xM6cpjP_sEilCSgt6vEQR1rco9sks5rfwsUgaJpZM4HI85V .
As a result, I did it the same. Actually it is partial login coded by yourself as the partial login Cookie was no different. If you want I can provide sample code that you can reuse.
@rh78 That would be good to see. Thank you.
@rh78 @pierslawson share the sample code perchance?
@rh78 sorry I have no access to that code anymore. But afairemember you just authorize not using the "full auth cookie" but define a second one which just grants access to a part of your application, not every location. Once all information is present (the information entry will be protected by the partial cookie) you sign in the user using the "full auth cookie".
Also you can check out my framework projects here, maybe you can use some code (it contains full IdSrv4 implementation of UI on ASP.NET 2.2.1, with multi tenant features, controllers, setup, GDPR support, tracking, etc. but it's part of a larger, very opinionated project (HCore) that I use for my own software as a base foundation so it might be hard to understand - however maybe you can use one or another code segment):
https://github.com/rh78/HCore/tree/master/HCore-Identity https://github.com/rh78/HCore/tree/master/HCore-Identity-PagesUI-Classes https://github.com/rh78/HCore/tree/master/HCore-Identity-PagesUI-Views
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.