Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use server callback url for start of oauth2 flow #715

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

patjacobs-magic
Copy link
Contributor

@patjacobs-magic patjacobs-magic commented Feb 23, 2024

πŸ“¦ Pull Request

[Provide a general summary of the pull request here.]

βœ… Fixed Issues

  • [List any fixed issues here like: Fixes #XXXX]

🚨 Test instructions

[Describe any additional context required to test the PR/feature/bug fix.]

⚠️ Don't forget to add a semver label!

Please only add one label:

  • patch: Bug Fix?
  • minor: New Feature?
  • major: Breaking Change?
  • skip-release: It's unnecessary to publish this change.
πŸ“¦ Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @magic-ext/[email protected]
# or 
yarn add @magic-ext/[email protected]

@patjacobs-magic patjacobs-magic added the minor Increment the minor version when merged label Feb 23, 2024
@patjacobs-magic patjacobs-magic self-assigned this Feb 23, 2024
@patjacobs-magic patjacobs-magic marked this pull request as ready for review February 27, 2024 05:41
@@ -44,7 +44,10 @@ export class OAuthExtension extends Extension.Internal<'oauth2'> {
}

if (successResult?.oauthAuthoriationURI) {
window.location.href = successResult.oauthAuthoriationURI;
window.location.href = successResult.useMagicServerCallback
? // @ts-ignore - this.sdk.endpoint is marked protected but we need to access it.
Copy link
Contributor

Choose a reason for hiding this comment

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

how about adding a public getter function for endpoint so we don't have to do this?

Copy link
Member

Choose a reason for hiding this comment

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

That's a good idea

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was thinking the same thing since this is protected. Didn't want to muddy up this PR so perhaps we can make a separate PR for this?

Ethella
Ethella previously approved these changes Feb 27, 2024
@patjacobs-magic patjacobs-magic added this pull request to the merge queue Feb 27, 2024
Merged via the queue into master with commit 5b21ffd Feb 27, 2024
4 checks passed
@patjacobs-magic patjacobs-magic deleted the patjacobs-oauth-v2-apple branch February 27, 2024 20:17
@Ariflo Ariflo added the released This issue/pull request has been released. label Feb 28, 2024
@magiclabs magiclabs deleted a comment from Ariflo Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants