Skip to content

Commit

Permalink
✅ update unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyd-c committed Apr 21, 2021
1 parent 6438149 commit 5bb1906
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void getOidcDiscoveryInfoNotNull() {
@Test
public void getOidcDiscoveryInfoEqual() {
OidcDiscoveryDto discoveryDto = OidcUtil.getOidcDiscoveryInfo(null);
Assert.assertEquals("{\"issuer\":\"http://localhost:8080\",\"authorization_endpoint\":\"http://localhost:8080/oauth/authorize\",\"token_endpoint\":\"http://localhost:8080/oauth/token\",\"userinfo_endpoint\":\"http://localhost:8080/oauth/userinfo\",\"registration_endpoint\":\"http://localhost:8080/oauth/registration\",\"end_session_endpoint\":\"http://localhost:8080/oauth/logout\",\"check_session_iframe\":\"http://localhost:8080/oauth/check_session\",\"jwks_uri\":\"http://localhost:8080/.well-known/jwks.json\",\"grant_types_supported\":[\"authorization_code\",\"implicit\",\"password\",\"client_credentials\",\"refresh_token\",\"token\"],\"response_modes_supported\":[\"fragment\",\"query\"],\"response_types_supported\":[\"code\",\"token\",\"id_token\",\"id_token token\",\"code id_token\",\"code token\",\"code id_token token\",\"none\"],\"scopes_supported\":[\"read\",\"write\",\"openid\",\"email\",\"phone\"],\"token_endpoint_auth_methods_supported\":[\"client_secret_post\",\"client_secret_basic\",\"none\"],\"request_object_signing_alg_values_supported\":[\"none\",\"RS256\",\"ES256\"],\"userinfo_signing_alg_values_supported\":[\"RS256\",\"ES256\"],\"request_parameter_supported\":true,\"request_uri_parameter_supported\":true,\"require_request_uri_registration\":false,\"claims_parameter_supported\":true,\"id_token_signing_alg_values_supported\":[\"RS256\",\"ES256\"],\"subject_types_supported\":[\"public\"],\"claims_supported\":[\"iss\",\"sub\",\"aud\",\"exp\",\"iat\",\"nonce\",\"auth_time\",\"username\"]}", JsonUtil.toJsonString(discoveryDto));
Assert.assertEquals("{\"issuer\":\"http://www.baidu.com\",\"authorization_endpoint\":\"http://www.baidu.com/oauth/authorize\",\"token_endpoint\":\"http://www.baidu.com/oauth/token\",\"userinfo_endpoint\":\"http://www.baidu.com/oauth/userinfo\",\"registration_endpoint\":\"http://www.baidu.com/oauth/registration\",\"end_session_endpoint\":\"http://www.baidu.com/oauth/logout\",\"check_session_iframe\":\"http://www.baidu.com/oauth/check_session\",\"jwks_uri\":\"http://www.baidu.com/.well-known/jwks.json\",\"grant_types_supported\":[\"authorization_code\",\"implicit\",\"password\",\"client_credentials\",\"refresh_token\",\"token\"],\"response_modes_supported\":[\"fragment\",\"query\"],\"response_types_supported\":[\"code\",\"token\",\"id_token\",\"id_token token\",\"code id_token\",\"code token\",\"code id_token token\",\"none\"],\"scopes_supported\":[\"read\",\"write\",\"openid\",\"email\",\"phone\"],\"token_endpoint_auth_methods_supported\":[\"client_secret_post\",\"client_secret_basic\",\"none\"],\"request_object_signing_alg_values_supported\":[\"none\",\"RS256\",\"ES256\"],\"userinfo_signing_alg_values_supported\":[\"RS256\",\"ES256\"],\"request_parameter_supported\":true,\"request_uri_parameter_supported\":true,\"require_request_uri_registration\":false,\"claims_parameter_supported\":true,\"id_token_signing_alg_values_supported\":[\"RS256\",\"ES256\"],\"subject_types_supported\":[\"public\"],\"claims_supported\":[\"iss\",\"sub\",\"aud\",\"exp\",\"iat\",\"nonce\",\"auth_time\",\"username\"]}", JsonUtil.toJsonString(discoveryDto));
}

@Test
Expand Down

0 comments on commit 5bb1906

Please sign in to comment.