Sign-in and OAuth tokens coverage
Direct and Device Sign-In, refresh and access tokens, and scopes (§4, §4.2 to §4.8). Upstream: personalagentprotocol.org/docs/spec.
34 entries: 27 implemented, 6 partial, 1 open. Each row is one atomic statement of the upstream text, with the SDK symbols that implement it (Python; TypeScript mirrors them), the tests and shared conformance cases that show it, and its status.
| ID | Section | Level | Role | Requirement | SDK symbol | Tests | Status |
|---|---|---|---|---|---|---|---|
PAP-4-01 | §4 | SHOULD | company | Direct Sign-In (4.2) is the preferred sign-in type. A Company that offers sign-in SHOULD offer Direct Sign-In. | CompanyConfigCompanyService.oauth_metadata | test_draft_04.py::test_the_reference_company_offers_direct_sign_inlifecycle.direct-sign-in-offered | implemented |
PAP-4-02 | §4 | SHOULD | personal-agent | A Personal Agent SHOULD use Direct Sign-In when the Company offers it. | DiscoveredCompany.preferred_sign_inDiscoveredCompany.sign_in_typesConformanceContext.sign_in | test_draft_04.py::test_direct_sign_in_is_preferred_when_offeredtest_draft_04.py::test_the_discovery_summary_lists_sign_in_types_direct_first | implemented |
PAP-4.2-01 | §4.2 | MUST | company | redirect_uri MUST exactly match an entry in the Personal Agent's redirect_uris (4.1), except for the port of a loopback redirect URI, as RFC 8252 §7.3 describes. | CompanyService._authorizeCompanyService._code_grantredirect_uri_matches | test_direct_and_api.py::test_the_consent_page_is_never_framed_and_bad_redirects_are_not_followedtest_auth.py::test_a_loopback_redirect_matches_with_any_port | implemented |
PAP-4.2-02 | §4.2 | MUST | personal-agent | The Personal Agent MUST check that iss exactly matches the issuer of the Company it started sign-in with. | validate_direct_sign_in_callback | test_auth.py::test_validates_callback_and_keeps_the_code_secrettest_auth.py::test_rejects_invalid_callbacks | implemented |
PAP-4.3-01 | §4.3 | MUST | both | Companies that offer Device Sign-In and Personal Agents that use it MUST follow the best practices in RFC 10027 (BCP 247) §2. | verification_host_allowedCompanyService.approve_device | test_device.py::test_a_device_link_is_shown_only_on_the_issuer_or_its_domains | partial: The SDK applies the mitigations the protocol states (the link's host, the company named, codes bound to a key, no approval on opening) and chooses Direct Sign-In when the Company offers it (PAP-4-02); the risk assessment RFC 10027 asks for is the deployment's. |
PAP-4.3-02 | §4.3 | MUST | personal-agent | Before showing them, the Personal Agent MUST check that the link's host is the host of the Company's issuer or organization.domain (3.1), or a subdomain of either | verification_host_allowedDeviceSignInClient.beginCompanyConfig | test_device.py::test_a_device_link_is_shown_only_on_the_issuer_or_its_domainstest_hosted_pages.py::test_hosted_page_templates_are_checkedtest_device.py::test_another_protected_resource_of_the_issuer_does_not_make_a_link_showable | implemented |
PAP-4.3-03 | §4.3 | MUST | personal-agent | and MUST show the Company's organization.name and domain with them. | DeviceSignInStartPapSignIn | test_device.py::test_a_device_link_is_shown_only_on_the_issuer_or_its_domainstest_ui.py::test_a_device_or_mediated_sign_in_names_its_companytest_ui.py::test_a_device_answer_is_a_display_whose_code_only_the_page_sees | implemented |
PAP-4.3-04 | §4.3 | MUST NOT | company | Opening the link MUST NOT approve the request by itself. | CompanyService.approve_device | test_draft_03.py::test_a_device_code_works_only_for_the_agent_it_was_issued_to | implemented |
PAP-4.2-20 | §4.2 | MUST | both | Companies that offer Direct Sign-In, and Personal Agents that open the authorization URL on a device other than the one the User is using, MUST follow the best practices in RFC 10027 (BCP 247) §2, as for Device Sign-In (4.3). | DirectSignInClient.beginconnect_headingconnect_caution | test_published_04.py::test_a_direct_sign_in_opened_on_another_device_is_short_livedtest_published_04.py::test_the_companys_page_names_the_agent_and_says_when_to_continue | partial: The SDK keeps a cross-device request short-lived (cross_device) and the reference company's page names the agent and says when to continue; limiting the scopes asked for, and the risk assessment RFC 10027 asks for, are the host's and the deployment's. |
PAP-4.2-21 | §4.2 | SHOULD | personal-agent | A Personal Agent SHOULD receive the redirect only on the device that opened the authorization URL when it can, at a loopback redirect URI or in its own app signed in as the User who started the sign-in (RFC 8252). | DirectSignInClient.complete | test_published_04.py::test_a_redirect_that_arrives_for_another_user_gets_no_tokens | partial: Where the redirect is received is the host's choice of redirect_uri; the SDK refuses a redirect the host says arrived for another User than the one who started (completed_by). |
PAP-4.4-01 | §4.4 | MUST | personal-agent | A Company MAY return a new refresh token. The Personal Agent then MUST use the new one from then on. If the response omits refresh_token, the Personal Agent keeps using the one it has, as RFC 6749 §6 describes. | RefreshTokenClient.refresh | test_accounts.py::test_refresh_gets_an_access_token_and_rotates_the_stored_tokentest_accounts.py::test_concurrent_refreshes_rotate_one_after_the_othertest_conformance.py::test_python_agent_python_company_over_tlstest_accounts.py::test_a_refresh_that_omits_the_refresh_token_keeps_the_one_heldlifecycle.rotated-tokenlifecycle.sign-out-revokes-every-refresh-token | implemented |
PAP-4.5-01 | §4.5 | SHOULD | personal-agent | Personal Agents SHOULD support DPoP, because a Personal Agent that doesn't can't sign in at a Company that requires it. | SessionClient.token_requestsession_headersJoseDpopProver | test_dpop.py::test_a_token_request_proves_when_the_issuer_lists_es256test_dpop.py::test_a_token_request_sends_no_proof_to_a_company_that_does_not_list_es256test_sessions.py::test_a_dpop_answer_with_no_proof_sent_is_refusedtest_conformance.py::test_python_agent_python_company_binding_with_dpop_over_tlsdpop.proof-only-when-listeddpop.dpop-answer-needs-a-proofdpop.proof-shapedpop.token-bound-and-useddpop.refresh-after-the-key-is-lost | implemented |
PAP-4.5-02 | §4.5 | MUST | personal-agent | The Personal Agent MUST use each DPoP key for one User ID only, for the same reason as delegated keys (5.2). | InMemoryDpopKeysJoseDpopProverproves_with_dpopFileDpopKeys | test_dpop.py::test_one_key_per_user_id_and_a_new_jti_for_each_prooftest_dpop.py::test_each_user_id_signs_in_with_its_own_dpop_keytest_dpop.py::test_a_mediated_sign_in_binds_its_token | implemented |
PAP-4.7-01 | §4.7 | SHOULD | company | The Company SHOULD describe each scope it offers Personal Agents, so the Personal Agent can choose the ones a task needs: in the scopes of an OAuth 2.0 security scheme in an OpenAPI description it lists (section 7), or otherwise in auth.scopes. | CompanyConfigCompanyService.discovery_document | test_draft_03.py::test_scopes_are_the_companys_described_and_never_poppytest_security_review.py::test_finding_5_operations_without_a_write_scope_is_a_configuration_errortest_fixtures.py::test_local_fixture_caseprotocol.auth-scopes-optional | implemented |
PAP-4.7-08 | §4.7 | SHOULD | company | The Company SHOULD list the scopes it supports in scopes_supported in its OAuth server metadata (3.2). | CompanyService.oauth_metadata | test_draft_03.py::test_scopes_are_the_companys_described_and_never_poppy | implemented |
PAP-4.7-02 | §4.7 | MUST | company | A Company MUST include both fields in each entry. | CompanyConfigScopeHint | test_draft_03.py::test_an_unknown_changes_hint_is_read_as_irreversible | implemented |
PAP-4.7-03 | §4.7 | MUST | personal-agent | A Personal Agent MUST ignore fields it doesn't recognize, and treat a changes value it doesn't recognize as irreversible, so later versions can add both. | ScopeHint.effective_changes | test_draft_03.py::test_an_unknown_changes_hint_is_read_as_irreversible | implemented |
PAP-4.7-04 | §4.7 | MUST NOT | company | The Company MUST NOT grant scopes beyond those requested. | CompanyService.approve_deviceCompanyService.approve_authorizationCompanyService._refresh_grantCompanyService._mediated_grant | test_direct_and_api.py::test_partial_consent_and_a_write_that_was_not_grantedtest_conformance.py::test_python_agent_python_company_over_tlslifecycle.sign-in-scopeslifecycle.wider-scopes-refused | implemented |
PAP-4.7-05 | §4.7 | MUST | personal-agent | Each sign-in request MUST include scope, except where an extension continues an earlier request, as a space-separated string, following OAuth scope syntax. | _scopesDeviceSignInClient.beginMediatedSignInClient.sign_in | test_auth.py::test_builds_direct_sign_in_url_with_s256_pkcetest_conformance.py::test_python_agent_python_company_over_tlslifecycle.sign-in-scopeslifecycle.unknown-scope-refused | implemented |
PAP-4.7-06 | §4.7 | SHOULD | personal-agent | A Personal Agent SHOULD request only the scopes the User's tasks need, following RFC 9700 §2.3. | _scopes | test_cli_protocol.py::test_exit_codes_for_setup_input_refusals_and_usage | partial: The SDK requests exactly the scopes the host names; the CLI never chooses for the user and refuses to sign in without --scope. |
PAP-4.7-07 | §4.7 | SHOULD | personal-agent | The new refresh token replaces the old one, which the Personal Agent SHOULD revoke (4.6). | RefreshTokenClient.revoke | — | open: No helper replaces and revokes the previous Account Token after a wider sign-in; the host calls revoke(). |
PAP10-4.2-01 | §4.2 (1.0) | MUST | personal-agent | Unless the Personal Agent receives the redirect only on the device that opened the authorization URL, as below, the authorization request MUST include prompt=consent (OpenID Connect Core §3.1.2.1). | build_direct_sign_in_requestDirectSignInClient.beginPROMPT_CONSENT | test_published_10.py::test_a_direct_sign_in_asks_for_consent_unless_the_redirect_stays_on_the_devicetest_hosted_pages.py::test_authorize_redirects_to_the_hosted_consent_page_which_reads_the_request | implemented |
PAP10-4.2-04 | §4.2 (1.0) | SHOULD | company | The Company SHOULD support prompt=consent, whether or not it supports OpenID Connect, and show its consent page for a request that includes it, even when the account already granted every requested scope to the client_id (10.8). | CompanyService._authorizeCompanyService.authorization_request | test_published_10.py::test_the_consent_page_lists_every_scope_and_marks_the_earlier_onestest_hosted_pages.py::test_authorize_redirects_to_the_hosted_consent_page_which_reads_the_request | implemented |
PAP10-4.2-02 | §4.2 (1.0) | MUST | personal-agent | A Company MAY require Pushed Authorization Requests (PAR, RFC 9126) by setting require_pushed_authorization_requests to true in its issuer's metadata (3.2). The Personal Agent then MUST send the authorization request's parameters to the pushed_authorization_request_endpoint with its client assertion, and open the authorization_endpoint with only client_id and the request_uri it gets back. | DirectSignInClient.beginDirectSignInClient._pushDirectSignInRequest.pushed_authorization_urlOAuthServerMetadataCompanyService._pushed_requestCompanyConfig | test_published_10.py::test_a_company_offers_or_requires_par_and_the_agent_pushestest_published_10.py::test_a_company_that_requires_par_takes_nothing_elsetest_published_10.py::test_a_push_with_a_dpop_proof_binds_the_code_to_its_keydpop.pushed-authorization-request | implemented |
PAP10-4.2-03 | §4.2 (1.0) | SHOULD | personal-agent | A Personal Agent SHOULD use PAR whenever the metadata lists the endpoint. | DirectSignInClient.beginConformanceContext.sign_in | test_published_10.py::test_a_company_offers_or_requires_par_and_the_agent_pushesdpop.pushed-authorization-request | partial: DirectSignInClient pushes whenever the host passes the issuer's pushed_authorization_request_endpoint, as the pap CLI and the conformance runner do; a host that calls it without the endpoint doesn't push. |
PAP10-4.2-05 | §4.2 (1.0) | SHOULD | personal-agent | When the Personal Agent sends the User a link to open later, such as on their phone, it SHOULD link to a page of its own that pushes the request when the User opens it and then redirects to the authorization_endpoint. | DirectSignInClient.open_link | test_published_10.py::test_a_link_opened_later_goes_to_the_agents_page_which_pushes_then | partial: begin(link_page=...) hands the browser the agent's own page and open_link pushes when it is opened; serving that page and redirecting is the host's. |
PAP10-4.3-01 | §4.3 (1.0) | SHOULD | company | The Company SHOULD show its consent page for every request, even when the account already granted every requested scope to the client_id (10.8). | CompanyService.device_requestCompanyService.approve_device | test_published_10.py::test_every_device_sign_in_shows_its_page_with_the_earlier_scopes_marked | implemented |
PAP10-4.4-01 | §4.4 (1.0) | MUST | personal-agent | A Personal Agent that sends a DPoP proof when it gets a refresh token (4.5) MUST send a proof from the same key with every refresh of that refresh token, and of the refresh tokens that replace it. | InMemoryDpopKeysJoseDpopProverRefreshTokenClient.refreshCompanyConfig | test_published_10.py::test_a_bound_refresh_token_refreshes_only_with_its_keytest_published_10.py::test_without_binding_a_refresh_with_a_new_key_still_worksdpop.refresh-bound-to-its-key | implemented |
PAP10-4.5-01 | §4.5 (1.0) | MUST | company | After a sign-in without resource, the Company MUST issue a token for any resource it offers Personal Agents, at refresh too. | CompanyService._refresh_grantCompanyService._resourceCompanyService._resource_allowedServiceTokens.token_for | test_published_10.py::test_a_service_left_out_is_invalid_target_and_used_signed_out | implemented |
PAP10-4.5-02 | §4.5 (1.0) | SHOULD NOT | personal-agent | The Personal Agent SHOULD NOT include resource in the request that starts sign-in: if it does, the Company MAY limit the grant to the resources it names, as RFC 8707 §2.2 allows. | build_direct_sign_in_requestDeviceSignInClient.begin | test_published_10.py::test_a_direct_sign_in_asks_for_consent_unless_the_redirect_stays_on_the_device | implemented |
PAP11-4.4-01 | §4.4 (1.1) | MUST | company | A Company whose issuer does MUST list offline_access in scopes_supported in the issuer's metadata (3.2). | CompanyConfig.offline_accessCompanyService.oauth_metadata | test_draft_11.py::test_a_company_whose_refresh_tokens_need_offline_accesslifecycle.offline-access-kept-from-resources | implemented |
PAP11-4.4-02 | §4.4 (1.1) | MUST | personal-agent | When the issuer's metadata lists it, the Personal Agent MUST include it in every sign-in request, and in scope when it asks for fewer scopes at refresh. | request_scopeDirectSignInClient.beginDeviceSignInClient.beginMediatedSignInClient.sign_inRefreshTokenClient.refreshOAuthServerMetadata.lists_offline_access | test_draft_11.py::test_offline_access_is_requested_when_the_issuer_lists_it_and_never_grantedtest_draft_11.py::test_a_company_whose_refresh_tokens_need_offline_accesstest_draft_11.py::test_offline_access_in_a_pushed_request_a_mediated_sign_in_and_no_challengetest_draft_11.py::test_offline_access_is_an_unknown_scope_where_refresh_tokens_need_none | implemented |
PAP11-4.4-03 | §4.4 (1.1) | SHOULD NOT | company | Resources SHOULD NOT list it in their protected resource metadata, and MUST NOT name it in a challenge (section 7) or an authorization event (8.11). | CompanyService.domain_resource_metadataCompanyService.protected_resource_metadata | test_draft_11.py::test_a_company_whose_refresh_tokens_need_offline_accesslifecycle.offline-access-kept-from-resources | implemented |
PAP11-4.4-04 | §4.4 (1.1) | MUST NOT | company | Resources SHOULD NOT list it in their protected resource metadata, and MUST NOT name it in a challenge (section 7) or an authorization event (8.11). A refresh token isn't something a resource requires. | CompanyConfig.offered_scopes | test_draft_11.py::test_offline_access_in_a_pushed_request_a_mediated_sign_in_and_no_challengelifecycle.offline-access-kept-from-resources | implemented |
Conformance case IDs name protocol/fixtures/conformance cases; see the conformance report for their outcome in every language pairing.