public class V2TokensResource extends IdentityResourceBase {
private static final Logger log = LoggerFactory.getLogger(V2TokensResource.class);
@POST
public V2AuthResponse doTokensPost(V2AuthRequest request) throws CloudException {
V2AuthCredentials authRequest = request.authInfo;
if (authRequest == null) {
authRequest = new V2AuthCredentials();
}
boolean hasPasswordCredentials = false;
if (authRequest.passwordCredentials != null && !Strings.isNullOrEmpty(authRequest.passwordCredentials.username)) {
hasPasswordCredentials = true;