flowchart LR
  A(["Sweden Connect\nFederation Rules"])



  A --> B["Introduction"]
  B --> B1["What is Sweden Connect?"]
  B --> B2["Purposewhat it does\nand doesn't do"]
  B --> B3["Who can join"]
  B --> B4["Two techniques:\nSAML & OpenID Connect"]

  A --> C["Joining the Federation\n(Anslutningsprocess)"]
  C --> C1["Agreements & Contracts"]
  C1 --> C1A["Contracts for\nRelying Parties"]
  C1 --> C1B["Contracts for\nIdentity Providers"]
  C1 --> C1C["Links to digg.se"]

  C --> C2["Roles & Representatives"]
  C2 --> C2A["Behöriga företrädare\n(authorized signatories)"]
  C2 --> C2B["Behöriga uppgiftslämnare\n(authorized metadata registrants)"]

  C --> C3{"Relying Party\nor Identity Provider?"}
  C3 -->|"Relying Party"| C3A["Relying Party\nJoining Process"]
  C3 -->|"Identity Provider"| C3B["Identity Provider\nJoining Process"]

  C --> D["Federation Information"]
  D --> D1["SAML\nFederation Info"]
  D1 --> D1A["Trusted certificates"]
  D1 --> D1B["Relevant URLs"]
  D1 --> D1C["How peer metadata\nis obtained"]
  D --> D2["OIDC\nFederation Info"]
  D2 --> D2A["Trusted certificates"]
  D2 --> D2B["Relevant URLs"]
  D2 --> D2C["How peer metadata\nis obtained"]
  D2 --> D2D["Info on chaining to other federations"]

  C --> E["Registering to\nthe Federation"]
  E --> E1["SAML\nRegistration"]
  E1 --> E1A["How to register\nan entity"]
  E --> E2["OIDC\nRegistration"]
  E2 --> E2A["How to register\nan entity"]
  E2 --> E2B["Registration\nPolicies"]

  C --> F["Specifications\n& Profiles"]
  F --> F1["SAML\nSpecifications"]
  F1 --> F1A["Underlying standards"]
  F1 --> F1B["SAML profiles"]
  F1 --> F1C["Required metadata"]
  F --> F2["OIDC\nSpecifications"]
  F2 --> F2A["Underlying standards"]
  F2 --> F2B["OIDC profiles"]
  F2 --> F2C["Required metadata"]

  C --> G["Security\nRequirements"]
  G --> G1["Key lengths"]
  G --> G2["Approved algorithms"]
  G --> G3["Key rollover\nprocedures"]

  C --> H["Level of Assurance\n& Trust Marks"]
  H --> H1["LoA levels\n& their meaning"]
  H --> H2["Trust Mark Policy"]

  style A fill:#1a3a5c,color:#fff
  style C fill:#1a3a5c,color:#fff
  style C3 fill:#2e6da4,color:#fff
  style D fill:#2e6da4,color:#fff
  style E fill:#2e6da4,color:#fff
  style F fill:#2e6da4,color:#fff
  style G fill:#2e6da4,color:#fff
  style H fill:#2e6da4,color:#fff
  style D1 fill:#3a7ebf,color:#fff
  style D2 fill:#3a7ebf,color:#fff
  style E1 fill:#3a7ebf,color:#fff
  style E2 fill:#3a7ebf,color:#fff
  style F1 fill:#3a7ebf,color:#fff
  style F2 fill:#3a7ebf,color:#fff
  style C1 fill:#3a7ebf,color:#fff
  style C2 fill:#3a7ebf,color:#fff