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

Support for Multiple Apple Clients (Web and Mobile) #36

Open
AndreyMisnikov opened this issue Aug 30, 2024 · 1 comment
Open

Support for Multiple Apple Clients (Web and Mobile) #36

AndreyMisnikov opened this issue Aug 30, 2024 · 1 comment

Comments

@AndreyMisnikov
Copy link

I am currently using the AppleAuth.NET library to handle Apple authentication for both a web application and a mobile app. However, I have encountered an issue when trying to manage multiple Apple clients simultaneously (i.e., using different configurations for web and mobile).

The AppleAuthProvider class in the library uses static fields to store the Apple client configuration, such as ClientID, TeamID, KeyID, and RedirectURL. This design causes the configuration to be shared across all instances of AppleAuthProvider, making it impossible to use different configurations for web and mobile in the same application.

@DanailStoichkov
Copy link
Collaborator

Hi!
Thanks for the feedback.
I guess you can easily cope with this with creating two different (or as many as you need) instances of the provider class and use the specific instance for authenticating either for mobile or web.

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

No branches or pull requests

2 participants