Add client credentials authentication filter

Fixes gh-5
This commit is contained in:
Tom van den Berge
2020-05-06 09:25:09 +02:00
committed by Joe Grandja
parent 4c8f89af5c
commit 18b09af3e9
4 changed files with 219 additions and 2 deletions

View File

@@ -44,11 +44,11 @@ public class OAuth2ClientAuthenticationToken extends AbstractAuthenticationToken
@Override
public Object getCredentials() {
return null;
return this.clientSecret;
}
@Override
public Object getPrincipal() {
return null;
return this.clientId;
}
}