Class ValidateUserInfoJSONObjectClaimsTest
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
-
- net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateUserInfoJSONObjectClaimsTest
-
public class ValidateUserInfoJSONObjectClaimsTest extends AbstractOIDCTest
Tests forValidateUserInfoJSONObjectClaims.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.authn.oidc.rp.context.AccessTokenResponseContextaccessTokenCtxprivate net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateUserInfoJSONObjectClaimsactionThe action to testprivate net.shibboleth.idp.plugin.authn.oidc.rp.context.UserInfoResponseContextuserInfoCtx-
Fields inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
ac, ACCESS_TOKEN_RESPONSE, ACCESS_TOKEN_RESPONSE_NO_ACCESSTOKEN, ACCESS_TOKEN_RESPONSE_NO_IDTOKEN, authnRequest, CLIENT_METADATA, GOOD_PROVIDER_CONFIGURATION_INFO, partyConfig, peerEntityCtx, prc, providerCtx, rootPrc, src, TOKEN_RESPONSE_ERROR, USERINFO_RESPONSE, USERINFO_RESPONSE_JWE, USERINFO_RESPONSE_JWS
-
-
Constructor Summary
Constructors Constructor Description ValidateUserInfoJSONObjectClaimsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()Setup the various contexts.voidtestValidate_Fail_NoTokenResponse()voidtestValidate_Fail_NoTokenResponseContext()voidtestValidate_Fail_NoUserInfo()voidtestValidate_Fail_NoUserInfoResponseContext()voidtestValidate_Fail_SubDoesNotMatchIdToken()voidtestValidate_Fail_SubDoesNotMatchIdToken_UserInfoJWT()voidtestValidate_Success()voidtestValidate_Success_UserInfoJWT()-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.impl.AbstractOIDCTest
convertHttpResponseToJSONObject
-
-
-
-
Field Detail
-
action
private net.shibboleth.idp.plugin.authn.oidc.rp.impl.ValidateUserInfoJSONObjectClaims action
The action to test
-
userInfoCtx
private net.shibboleth.idp.plugin.authn.oidc.rp.context.UserInfoResponseContext userInfoCtx
-
accessTokenCtx
private net.shibboleth.idp.plugin.authn.oidc.rp.context.AccessTokenResponseContext accessTokenCtx
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws ExceptionDescription copied from class:AbstractOIDCTestSetup the various contexts.- Overrides:
setupin classAbstractOIDCTest- Throws:
Exception- on error
-
testValidate_Fail_NoTokenResponse
public void testValidate_Fail_NoTokenResponse() throws Exception- Throws:
Exception
-
testValidate_Fail_NoTokenResponseContext
public void testValidate_Fail_NoTokenResponseContext() throws Exception- Throws:
Exception
-
testValidate_Fail_NoUserInfoResponseContext
public void testValidate_Fail_NoUserInfoResponseContext() throws Exception- Throws:
Exception
-
testValidate_Fail_NoUserInfo
public void testValidate_Fail_NoUserInfo() throws Exception- Throws:
Exception
-
testValidate_Success_UserInfoJWT
public void testValidate_Success_UserInfoJWT() throws Exception- Throws:
Exception
-
testValidate_Fail_SubDoesNotMatchIdToken_UserInfoJWT
public void testValidate_Fail_SubDoesNotMatchIdToken_UserInfoJWT() throws Exception- Throws:
Exception
-
-