Injecting user registration steps into IdentityServer3 SSO process
Asked Answered
C

1

7

I'm looking to employ Thinktecture's IdentityServer3 solution as a SSO service across multiple web application the organisation makes available to external users.

Taking the MVC Authentication sample as a starting point I'm looking at bolting on a registration process for new users to capture extra details when they first come to use the systems. This process is common across all the services we provide so I wish to bundle it alongside our SSO service.

Is there an elegant way to inject extra business logic into the IdentityServer3 core service? Basically if they're a new user I need to redirect them to some registration pages before flicking them back authenticated to the web application that they originally wanted to authenticate against.

Cortes answered 6/4, 2015 at 21:15 Comment(0)
O
3

Both docs

https://identityserver.github.io/Documentation/docsv2/advanced/userService.html

and samples

https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/CustomUserService

cover this.

Overcapitalize answered 12/4, 2015 at 21:28 Comment(2)
Thank you, not sure how I missed that sample!Cortes
Just for anyone else that stumbles across this looking for a solution: To share authentication cookies custom pages must reside at the same route as where IdentityServer3 is registered - github.com/IdentityServer/IdentityServer3/issues/… - the sample shows how to achieve this via routes.MapMvcAttributeRoutes() in RegisterRoutes and route decorations in controllers e.g. [Route("core/externalregistration")]Cortes

© 2022 - 2024 — McMap. All rights reserved.