cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Authenticator which will return 401 unauthorized on bad credentials and not execute system authenticators

jacekgra
12-Amethyst

Authenticator which will return 401 unauthorized on bad credentials and not execute system authenticators

Is it possible to write custom authenticator that will:

1) Has top priority (executed first) - YES

2) Be executed only when certian header will be present in the request - YES

3) Return 401 Unauthorized if credentials will be wrong AND respond to the user immedietally without executing system authenciators (HTTP BASIC etc) - ???

ACCEPTED SOLUTION

Accepted Solutions
keriw
12-Amethyst
(To:jacekgra)

you can have it do custom checks as the first part of your authenticator and if your custom checks fail you should be able to then use

httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "your message goes here");

View solution in original post

1 REPLY 1
keriw
12-Amethyst
(To:jacekgra)

you can have it do custom checks as the first part of your authenticator and if your custom checks fail you should be able to then use

httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "your message goes here");

Announcements


Top Tags