public class CsrfProtection extends Object
Constructor and Description |
---|
CsrfProtection(ResourceOwnerSessionValidator resourceOwnerSessionValidator) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCsrfAttack(OAuth2Request request)
Checks if the request contains the required "csrf" parameter and check it equals the users session id.
|
@Inject public CsrfProtection(ResourceOwnerSessionValidator resourceOwnerSessionValidator)
public boolean isCsrfAttack(OAuth2Request request)
request
- The request.true
if the request is a CSRF attack, false
if not.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.