Skip to content

Feat: support RFC9207, strip iss parameter - #2584

Merged
VirginiaBalseiro merged 4 commits into
mainfrom
feat/support-rfc9207
Jan 12, 2023
Merged

VirginiaBalseiro merged 4 commits into
mainfrom
feat/support-rfc9207

Conversation

@VirginiaBalseiro

Copy link
Copy Markdown
Contributor

New feature description

  • Added support for RFC 9207
  • Clean up iss parameter from redirect URL after redirect

Closes #2103

Checklist

  • All acceptance criteria are met.
  • Relevant documentation, if any, has been written/updated.
  • The changelog has been updated, if applicable.
  • New functions/types have been exported in index.ts, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

@VirginiaBalseiro
VirginiaBalseiro requested a review from a team January 12, 2023 09:32
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 09:53 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 09:53 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 09:53 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 09:53 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 09:53 — with GitHub Actions Inactive
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 10:13 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 10:13 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 10:13 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 10:13 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 10:21 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 10:21 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 10:21 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS PodSpaces January 12, 2023 10:22 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro temporarily deployed to ESS Dev-Next January 12, 2023 10:22 — with GitHub Actions Inactive
@VirginiaBalseiro
VirginiaBalseiro merged commit 1489368 into main Jan 12, 2023
@VirginiaBalseiro
VirginiaBalseiro deleted the feat/support-rfc9207 branch January 12, 2023 10:36

@ThisIsMissEm ThisIsMissEm 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.

Sorry I missed review on this, but nicely done! Only one question, which would be nice to know


await expect(
authCodeRedirectHandler.handle(redirectUrl.href)
).rejects.toThrow();

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.

What does this end up throwing?


if (typeof iss === "string" && iss !== issuerConfig.issuer) {
throw new Error(
`The value of the iss parameter (${iss}) does not match the issuer identifier of the authorization server (${issuerConfig.issuer}). See [rfc9207](https://www.rfc-editor.org/rfc/rfc9207.html#section-2.3-3.1.1)`

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.

Now that. That is a well written damn error message.

This branch was previously deployed

3 inactive deployments
Preview — 6baf9695 Deployed Jan 12, 2023 by vercel[bot]
ESS Dev-Next — 6baf9695 Deployed Jan 12, 2023 by VirginiaBalseiro
ESS PodSpaces — 6baf9695 Deployed Jan 12, 2023 by VirginiaBalseiro
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.

Cannot restore session because of invalid redirect url

3 participants