Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to customize the Thinktecture.IdentityServer.v2 login page?

I'm using the Thinktecture.IdentityServer.v2 app to perform SSO for a couple of internal apps but would like to customize the login page for each application to have a smoother user experience. I can't seem to find a way to do that.

Can the login page be customized depending on the source application from where the client is comming?

like image 581
JohnDoDo Avatar asked Jun 13 '13 16:06

JohnDoDo


2 Answers

"I can't seem to find a way to do that." - How hard have you tried? ;)

The RP has the extra data fields - so you can hang like a CSS name off the RP in the registration database. Further you can get to that RP data from the signin page - quoting the comment in AccountController:

// you can call AuthenticationHelper.GetRelyingPartyDetailsFromReturnUrl to get more information about the requested relying party

btw - IdentityServer's github repo has an issue tracker - you should use that for questions.

like image 121
leastprivilege Avatar answered Oct 24 '22 10:10

leastprivilege


You can always have the RP pass a custom query string param and customize off of that. But you're outside the bounds of WS-Federation at that point. Plus, you must think about the nature of SSO -- the user is really signing into the IdP, not the app. So changing the IdP to look like the app is somewhat disingenuous.

like image 31
Brock Allen Avatar answered Oct 24 '22 08:10

Brock Allen