Please provide working project for validation of okta access token in spring boot

Hi Team,

Can anybody give the working sample project for how to validate okta access token in spring boot java.

The below git hub link is not working, kindly provide another working project.

Thanks,
Sumanth.M

This may help…

@Autowired
private JwtDecoder jwtDecoder;

String accessTokenString = "example";

try {
	final Jwt jwt = jwtDecoder.decode(accessTokenString);
	final AbstractAuthenticationToken token = new JwtAuthenticationConverter().convert(jwt);
	accessor.setUser(token);
} catch (JwtException je) {
	logger.error(je.getMessage());
}

You can then access the methods on the token.

@Sumanth, did Mike’s response help? The verifier you linked to is the right package to use if you are looking to use Java. Are you seeing any errors when you try to use it?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.