<commit_before>#!/bin/bash

###########################################################################
# Copyright (C) 2016 Ping Identity Corporation
#
# Script used to do automated OpenID Connect Relying Party Certification
# Testing for the mod_auth_openidc OIDC RP implementation for Apache HTTPd.
#
# @Version: 2.1.0, mod_auth_openidc >= v2.0.1rc7
# 
# @Author: <NAME> - <EMAIL>
#
###########################################################################

REDIRECT_URI="<THE-REDIRECT_URI-OF-YOUR-APACHE-MOD_AUTH_OPENIDC-INSTANCE>"
TARGET_URL="<YOUR-APPLICATION-URL-PROTECTED-BY-MOD_AUTH_OPENIDC>"
RP_ID="<YOUR-RP-TEST-CLIENT-IDENTIFIER>"
LOG_FILE="<YOUR-APACHE-ERROR-LOGFILE-WITH-DEBUG-MESSAGES>"

RP_TEST_URL="https://rp.certification.openid.net:8080"
COOKIE_JAR="/tmp/cookie.jar"

FLAGS="-s -k -b ${COOKIE_JAR} -c ${COOKIE_JAR}"

SETENV="$(dirname "$0")/setenv.sh"
if [[ -x "${SETENV}" ]]; then
	source "${SETENV}"
fi

TESTS="
	rp_discovery_webfinger_url
	rp_discovery_webfinger_acct
	rp_discovery_issuer_not_matching_config
	rp_discovery_openid_configuration
	rp_discovery_jwks_uri_keys
	rp_registration_dynamic
	rp_response_type_code
	rp_response_type_id_token
	rp_response_type_id_token_token
	rp_response_type_code_id_token
	rp_response_type_code_token
	rp_response_type_code_id_token_token
	rp_response_mode_form_post
	rp_claims_request_id_token
	rp_claims_request_userinfo
	rp_request_uri_enc
	rp_request_uri_sig_enc
	rp_request_uri_unsigned
	rp_request_uri_sig
	rp_scope_userinfo_claims
	rp_nonce_unless_code_flow
	rp_nonce_invalid
	rp_token_endpoint_client_secret_basic
	rp_token_endpoint_client_secret_post
	rp_token_endpoint_client_secret_jwt
	rp_token_endpoint_private_key_jwt
	rp_id_token_bad_sig_rs256
	rp_id_token_bad_sig_hs256
	rp_id_token_sig_enc
	rp_id_token_sig_rs256
	rp_id_token_sig_hs256
	rp_id_token_sig_es256
	rp_id_token_sig_none
	rp_id_token_bad_c_hash
	rp_id_token_bad_at_hash
	rp_id_token_issuer_mismatch
	rp_id_token_iat
	rp_id_token_bad_sig_es256
	rp_id_token_aud
	rp_id_token_sub
	rp_id_token_kid_absent_single_jwks
	rp_id_token_kid_absent_multiple_jwks
	rp_key_rotation_op_sign_key
	rp_key_rotation_op_enc_key
	rp_claims_aggregated
	rp_claims_distributed
	rp_userinfo_bearer_header
	rp_userinfo_bearer_body
	rp_userinfo_sig
	rp_userinfo_sig_enc	
	rp_userinfo_enc
	rp_userinfo_bad_sub_claim
"

TEST_ERR="
"

TESTS_OBSOLETE="
	rp_discovery_webfinger_http_href
	rp_discovery_webfinger_unknown_member
	rp_support_3rd_party_init_login
"

TESTS_UNSUPPORTED="
	rp-self-issued
	rp-key-rotation-rp-sign-key
	rp-key-rotation-rp-enc-key
"

if [ -z $1 ] ; then
	echo
	printf "Usage: ${0}\n\tall${TESTS}"
	echo
	exit
fi
<commit_msg>remove obsolete rp key rotation certification tests<commit_after>#!/bin/bash

###########################################################################
# Copyright (C) 2016 Ping Identity Corporation
#
# Script used to do automated OpenID Connect Relying Party Certification
# Testing for the mod_auth_openidc OIDC RP implementation for Apache HTTPd.
#
# @Version: 2.1.0, mod_auth_openidc >= v2.0.1rc7
# 
# @Author: <NAME> - <EMAIL>
#
###########################################################################

REDIRECT_URI="<THE-REDIRECT_URI-OF-YOUR-APACHE-MOD_AUTH_OPENIDC-INSTANCE>"
TARGET_URL="<YOUR-APPLICATION-URL-PROTECTED-BY-MOD_AUTH_OPENIDC>"
RP_ID="<YOUR-RP-TEST-CLIENT-IDENTIFIER>"
LOG_FILE="<YOUR-APACHE-ERROR-LOGFILE-WITH-DEBUG-MESSAGES>"

RP_TEST_URL="https://rp.certification.openid.net:8080"
COOKIE_JAR="/tmp/cookie.jar"

FLAGS="-s -k -b ${COOKIE_JAR} -c ${COOKIE_JAR}"

SETENV="$(dirname "$0")/setenv.sh"
if [[ -x "${SETENV}" ]]; then
	source "${SETENV}"
fi

TESTS="
	rp_discovery_webfinger_url
	rp_discovery_webfinger_acct
	rp_discovery_issuer_not_matching_config
	rp_discovery_openid_configuration
	rp_discovery_jwks_uri_keys
	rp_registration_dynamic
	rp_response_type_code
	rp_response_type_id_token
	rp_response_type_id_token_token
	rp_response_type_code_id_token
	rp_response_type_code_token
	rp_response_type_code_id_token_token
	rp_response_mode_form_post
	rp_claims_request_id_token
	rp_claims_request_userinfo
	rp_request_uri_enc
	rp_request_uri_sig_enc
	rp_request_uri_unsigned
	rp_request_uri_sig
	rp_scope_userinfo_claims
	rp_nonce_unless_code_flow
	rp_nonce_invalid
	rp_token_endpoint_client_secret_basic
	rp_token_endpoint_client_secret_post
	rp_token_endpoint_client_secret_jwt
	rp_token_endpoint_private_key_jwt
	rp_id_token_bad_sig_rs256
	rp_id_token_bad_sig_hs256
	rp_id_token_sig_enc
	rp_id_token_sig_rs256
	rp_id_token_sig_hs256
	rp_id_token_sig_es256
	rp_id_token_sig_none
	rp_id_token_bad_c_hash
	rp_id_token_bad_at_hash
	rp_id_token_issuer_mismatch
	rp_id_token_iat
	rp_id_token_bad_sig_es256
	rp_id_token_aud
	rp_id_token_sub
	rp_id_token_kid_absent_single_jwks
	rp_id_token_kid_absent_multiple_jwks
	rp_key_rotation_op_sign_key
	rp_key_rotation_op_enc_key
	rp_claims_aggregated
	rp_claims_distributed
	rp_userinfo_bearer_header
	rp_userinfo_bearer_body
	rp_userinfo_sig
	rp_userinfo_sig_enc	
	rp_userinfo_enc
	rp_userinfo_bad_sub_claim
"

TEST_ERR="
"

TESTS_OBSOLETE="
	rp_discovery_webfinger_http_href
	rp_discovery_webfinger_unknown_member
	rp_support_3rd_party_init_login
	rp-key-rotation-rp-sign-key
	rp-key-rotation-rp-enc-key
"

TESTS_UNSUPPORTED="
	rp-self-issued
"

if [ -z $1 ] ; then
	echo
	printf "Usage: ${0}\n\tall${TESTS}"
	echo
	exit
fi

{'fraction_non_alphanumeric': 0.12023898431665422, 'fraction_numerical': 0.013816280806572068, 'mean_word_length': 8.316521739130435, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4913201', 'n_tokens_mistral': 2267, 'n_tokens_neox': 2169, 'n_words': 262}