Skip to content

feat: Improvements to AuthServerMetadata#49

Open
ThisIsMissEm wants to merge 3 commits into
fix/client-id-non-parfrom
feat/auth-server-metadata
Open

feat: Improvements to AuthServerMetadata#49
ThisIsMissEm wants to merge 3 commits into
fix/client-id-non-parfrom
feat/auth-server-metadata

Conversation

@ThisIsMissEm

Copy link
Copy Markdown
Contributor

Summary

  • Make all AuthServerMetadata properties public
  • Add resolveMaybe(endpoint: OptionalEndpoint) for optional AS metadata URLs (PAR, revocation, userinfo) with HTTPS validation
  • Split Endpoint into RequiredEndpoint and OptionalEndpoint
  • Add OAuth.Errors.notSupported for graceful fallback when optional endpoints are absent; used in the PAR flow to fall back to standard authorization

Test plan

  • Verify PAR fallback works when pushedAuthorizationRequestEndpoint is absent
  • Verify HTTPS enforcement on optional endpoints

@changeset-bot

changeset-bot Bot commented May 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ffd22d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@germ-network/oauth4swift Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ThisIsMissEm ThisIsMissEm force-pushed the feat/auth-server-metadata branch from cd282bd to ffd22d3 Compare May 29, 2026 22:54
@ThisIsMissEm ThisIsMissEm force-pushed the fix/client-id-non-par branch from 055a3cc to ac0ff5c Compare May 29, 2026 22:54

@germ-mark germ-mark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants