kosa
kosa

Reputation: 66637

Spring security openID attribute access

My questions is similar to this SO question.

But I am using Spring security 3.1.4 in which following call is deprecated.

(OpenIDAuthenticationToken)exception.getAuthentication()

What is the alternative mechanism to get OpenIDAuthenticationToken in SimpleUrlAuthenticationFailureHandler implementation?

Thanks for your time and help.

Upvotes: 1

Views: 153

Answers (1)

Shaun the Sheep
Shaun the Sheep

Reputation: 22742

If your requirement is to register users who are not already in your system, you can do that in the same way that the sample application does.

If you need more interaction with the user at that point, then the only alternative to the deprecated method that springs to mind would be to use your own custom exception.

Upvotes: 2

Related Questions