from typing import Dict
from typing import Any


def userinfo_token(
        token_subject: str,
        token_idp: str,
        token_ssn: str,
) -> Dict[str, Any]:
    """
    Mocked userinfo-token from Identity Provider (unencoded).
    """
    return {
        'iss': 'https://pp.netseidbroker.dk/op',
        'nbf': 1632389572,
        'iat': 1632389572,
        'exp': 1632389872,
        'amr': ['code_app'],
        'mitid.uuid': '7ddb51e7-5a04-41f8-9f3c-eec1d9444979',
        'mitid.age': '55',
        'mitid.identity_name': 'Anker Andersen',
        'mitid.date_of_birth': '1966-02-03',
        'loa': 'https://data.gov.dk/concept/core/nsis/Substantial',
        'acr': 'https://data.gov.dk/concept/core/nsis/Substantial',
        'identity_type': 'private',
        'idp': token_idp,
        'dk.cpr': token_ssn,
        'auth_time': '1632387312',
        'sub': token_subject,
        'aud': '0a775a87-878c-4b83-abe3-ee29c720c3e7',
        'transaction_id': 'a805f253-e8ea-4457-9996-c67bf704ab4a',
    }