Developer forum

Forum » Development » How to disable single-sign on?

How to disable single-sign on?

Evaldas Raisutis
Reply

I can see that users are automatically logged in url's  query strings "username" and "password" are set. How can I disable this?

We are working on a third-party OCI login, where we need to do some preproccessing and validation before we login a user. However, if they pass "username" and "password", then DW seems to login the user and my code never runs ( I have a .ashx endpoint, which then should return an authentication token valid for a number of minutes )


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Evaldas

You cannot disable that.

But you can make a notification subscriber that listens to Notifications.Standard.User.OnBeforeExtranetLogin that will execute just before the login procedure is executed.

The arguments passed contains the username and password coming in, and you can abort the login procedure by makeing a redirect or something like that.

BR Nicolai

Votes for this answer: 1
 
Evaldas Raisutis
Reply

Hi Nicolai,

Hmm, I can see that the same happens if I make an HTTP POST request with form data, containing "Username" and "Password". How should I go about preventing that? I can't redirect a POST request.

- Evaldas

 
Nicolai Pedersen
Reply

Of course you can :-)

 
Nicolai Pedersen
Reply

Except if you want to redirect to another post...

 
Evaldas Raisutis
Reply

Well, yes, that's what I meant. We'll try to make due. 

But it would be nice if it were possible to disable this functionality in future in order to support easier third-party sign-ins.

 
Nicolai Pedersen
Reply

You can just post with other parameters than username & password - i.e. externalusername=some&externalpassword=some

 
Evaldas Raisutis
Reply

The 3rd party is not able to change parameter names :) 

 

You must be logged in to post in the forum