<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
        targetNamespace="https://schemas.vivvocloud.com/assurance/loa2"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns="https://schemas.vivvocloud.com/assurance/loa2"
        finalDefault="extension"
        blockDefault="substitution"
        version="2.0">
    <xs:redefine schemaLocation="saml-schema-authn-context-types-2.0.xsd">
        <xs:annotation>
            <xs:documentation>
                Class identifier:
                https://schemas.vivvocloud.com/assurance/loa2
                Defines Level 2 of PCTF Verified Person Profile
            </xs:documentation>
        </xs:annotation>

        <xs:complexType name="AuthnContextDeclarationBaseType">
            <xs:complexContent>
                <xs:restriction base="AuthnContextDeclarationBaseType">
                    <xs:sequence>
                        <xs:element ref="GoverningAgreements"/>
                    </xs:sequence>
                    <xs:attribute name="ID" type="xs:ID" use="optional"/>
                </xs:restriction>
            </xs:complexContent>
        </xs:complexType>
        <xs:complexType name="GoverningAgreementRefType">
            <xs:complexContent>
                <xs:restriction base="GoverningAgreementRefType">
                    <xs:attribute name="governingAgreementRef"
                                  type="xs:anyURI"
                                  fixed="https://github.com/canada-ca/PCTF-CCP/blob/master/verified-person/verified-person.md"
                                  use="required"/>
                </xs:restriction>
            </xs:complexContent>
        </xs:complexType>

    </xs:redefine>
</xs:schema>