@@ -0,0 +1,1244 @@
+# -*- coding: utf-8 -*-%0A%0Afrom py3oauth2.message import Parameter%0A%0Afrom ..idtoken import IDToken as BaseIDToken%0Afrom .authorizationcodeflow import (%0A    AuthenticationRequest as BaseAuthenticationRequest,%0A)%0Afrom .implicitflow import (%0A    Response as BaseAuthenticationResponse,%0A)%0A%0A%0Adef is_at_hash_required(idtoken):%0A    # TODO: implement this%0A    return False%0A%0A%0Adef is_chash_required(idtoken):%0A    # TODO: implement this%0A    return False%0A%0A%0Adef is_access_token_required(resp):%0A    # TODO: implement this%0A    return False%0A%0A%0Adef id_token_required(resp):%0A    # TODO: implement this%0A    return False%0A%0A%0Aclass IDToken(BaseIDToken):%0A    nonce = Parameter(str, required=True)%0A    at_hash = Parameter(str, required=is_at_hash_required)%0A    c_hash = Parameter(str, required=is_chash_required)%0A%0A%0Aclass AuthenticationResponse(BaseAuthenticationResponse):%0A    __id_token_class__ = IDToken%0A%0A    # OAuth2.0 parameters%0A    access_token = Parameter(str, required=is_access_token_required)%0A    code = Parameter(str, required=True)%0A%0A    id_token = Parameter(str, required=id_token_required)%0A%0A%0Aclass AuthenticationRequest(BaseAuthenticationRequest):%0A    response = AuthenticationResponse%0A%0A    # OAuth2.0 parameters%0A    response_type = Parameter(str, required=True)%0A

define messages for hybrid flow