Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to properly throw exception in methods of IAuthenticationTokenProvider

$
0
0

Lets say i implement ReceiveAsync method.

at the end of this method I should to call  context.DeserializeTicket(...)

if would like to implement cusom logic, for example if I did not found refresh token - display such error message to user.

however:

1. SetError method not exists in AuthenticationTokenReceiveContext class

2. throw new Exception(...) not gives as result json object

Any suggestions?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>