How to get WCF Interface Version of UserNameAuthenticaton

Viewed 14

I have a WCF server/client structure, which gets a new way for authentication.

serviceHost.Credentials.UserNameAuthentication.UserNamePasswordValidationMode = UserNamePasswordValidationMode.Custom;

There are two versions:

  • Server Version 1.0 Supports Authentication 1.0
  • Server Version 2.0 Supports Authentication 2.0

Both Server Versions supports username and password. The client needs to know, which user should be used. The new client should support both Authentication methods.

  • Client 2.0 --> Server 1.0
  • Client 2.0 --> Server 2.0

Is there any information available, to get the service version of the server before the authentication process? The client should select the compatible method depended on the version of the server.

One idea was to use a mex data with the version infos inside the url.

0 Answers
Related