ClientCredentialsServerResourceTest.java revision f58c87ece2202b8f85310d8885c7e39a7f435c09
/*
* DO NOT REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2012 ForgeRock Inc. All rights reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/**
* @author $author$
* @version $Revision$ $Date$
*/
public class ClientCredentialsServerResourceTest extends AbstractFlowTest {
@Test
public void testValidRequest() throws Exception {
// handle
// assert
}
});
}
@Test
}
/*
The client MUST use the HTTP "POST" method when making access token
requests.
*/
@Test
public void testGETRequest() throws Exception {
// handle
}
/*
Parameters sent without a value MUST be treated as if they were
omitted from the request.
*/
@Test
public void testEmptyParameterInRequest() throws Exception {
//sent empty grant type
// handle
}
/*
The authorization server MUST ignore
unrecognized request parameters.
*/
@Test
public void testIgnoreUnrecognizedParametersInRequest() throws Exception {
//add unrecognized param
// handle
// assert
}
});
}
/*
Request and response parameters
MUST NOT be included more than once.
*/
@Test
public void testMultipleSameParametersInRequest() throws Exception {
//add multiple grant_types (will use first param)
//add multiple scopes (will use first param)
// handle
// assert
}
});
}
}