IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Question: How do I add custom links on the Login page?

Open 82949712 opened this issue 8 years ago • 8 comments

For example if I would like to add a forgot password link to the login page for a particular client.

82949712 avatar Apr 25 '18 23:04 82949712

You could do that by getting the clientid from the request, pass it on to the login view and do an if that contains your link. If im right...

DotNetPat avatar Apr 26 '18 08:04 DotNetPat

You are expected to control the UI. All the code is there, so just learn it and change it as you need.

brockallen avatar Apr 26 '18 14:04 brockallen

@DotNetPat If I get you correctly, I can just check my client id and display information accordingly. But do I need to hard code all these custom links in the IdentityServer? Can these be passed to IS by the client or saved in the client configuration (I don't see any option in the client object though). Thank you!

82949712 avatar Apr 26 '18 23:04 82949712

@brockallen Yes, I am aware of that. I'm just wondering if there's any standard way of doing this. It would be nice if you could give a very simple example.

82949712 avatar Apr 26 '18 23:04 82949712

@82949712 As far as i know is IdentityServer just a framework to do SSO using standardized procedures like openidconnect and oauth. it is not a out of the box user management system. so if you already have a system, that should be integrated, you can do that by adding a corresponding client using oauth or openidconnect. in this case the usermanagement you are integrating is responsible for resetting its password. (to keep everything clean). if you want implement a usermanagement system, you should first try the quickstart-sample and step through the login-procedure (http-get) of the account-controller and have a look at its view. This will show you where all the information comes from and the model, that is used by the view. ^^ all you have to do is inserting your corresponding code that fits to your usermanagement-processes. I have looked at the AccountControler class of the quickstart and there is no implementation of a reset process.

DotNetPat avatar Apr 27 '18 09:04 DotNetPat

This seems to be a general question about IdentityServer - not a bug report or an issue.

Please use one of the our free or commercial support options

See here for more details.

Thanks!

brockallen avatar Apr 27 '18 12:04 brockallen

if you want to see resetting of forgotten passwords in account controller just create a new solution in visual studio and select core web application and then click on the button "Change Authentication" to "Individual user accounts". Just use that as a throwaway example of several ways to handle user accounts.

TomCJones avatar Apr 27 '18 16:04 TomCJones

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.

lock[bot] avatar Jan 13 '20 11:01 lock[bot]