#NEWLINE# def test_parse_authz_req_jwt( self ) : #NEWLINE# #INDENT# ar = AuthorizationRequest ( response_type = [ 'code' ] , client_id = CLIENT_ID , redirect_uri = 'http://foobar.example.com/oaclient' , state = 'cold' , nonce = 'NONCE' , scope = [ 'openid' ] ) #NEWLINE# _keys = self . srv . keyjar . get_verify_key ( owner = CLIENT_ID ) #NEWLINE# _jwt = ar . to_jwt ( key = _keys , algorithm = 'HS256' ) #NEWLINE# req = self . srv . parse_jwt_request ( txt = _jwt ) #NEWLINE# assert isinstance ( req , AuthorizationRequest ) #NEWLINE# assert ( req [ 'response_type' ] == [ 'code' ] ) #NEWLINE# assert ( req [ 'client_id' ] == CLIENT_ID ) #NEWLINE# assert ( req [ 'redirect_uri' ] == 'http://foobar.example.com/oaclient' ) #NEWLINE# assert ( req [ 'state' ] == 'cold' )