This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The key portion of the error message is the javax.naming.AuthenticationException in brackets. Example: | |
[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ] | |
The AD-specific error code after the 'data' word ('52e' in the above example) is the actual error string returned to the binding process and will provide an explicit reason for the failure; | |
525 user not found | |
Description: Returns when username is invalid. | |
52e invalid credentials | |
Description: Logon failure: unknown user name or bad password. Returns when username is valid but password/credential is invalid. Will prevent most other errors from being displayed as noted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace StreamingAPIClient | |
{ | |
public static class Program | |
{ | |
public static async Task Main(string[] args) | |
{ | |
Console.WriteLine("Run sample client"); | |
HttpClient client = new HttpClient(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.netty.handler.timeout.ReadTimeoutHandler; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.context.event.ApplicationReadyEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.core.ParameterizedTypeReference; | |
import org.springframework.http.HttpStatusCode; | |
import org.springframework.http.MediaType; | |
import org.springframework.http.codec.ServerSentEvent; |
OlderNewer