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

hi 👋 #33

Closed
stewones opened this issue Mar 23, 2019 · 4 comments
Closed

hi 👋 #33

stewones opened this issue Mar 23, 2019 · 4 comments
Labels
question Support

Comments

@stewones
Copy link
Member

I wrote this plugin that does the oauth stuff for Twitter and linked your lib as a related project.
can I send a PR linking my plugin as well?

https://github.com/stewwan/capacitor-twitter

@moberwasserlechner
Copy link
Collaborator

moberwasserlechner commented Mar 23, 2019

hey, I look at your readme and your plugin demands the user to use the app secret in ios and android.

This is very bad practise as soon as an attacker gets the apk and decompile the code and he also gets the app secret.

You should never use code flow out side a server only code flow + pkce is a proper options.

Are you aware of that?

Update: Maybe Twitterkit manages the secure holding of the appSecret but it seems odd though.

@moberwasserlechner
Copy link
Collaborator

I think your PR would be better suited for https://github.com/ionic-team/capacitor/blob/master/site/docs-md/community/plugins.md#authentication.

There are already a couple of authentication plugins on that list and I don't want to curate a list myself because Capacitor already has one.

@stewones
Copy link
Member Author

It makes no sense, that's the way twitterkit handles it.

Ok no problem. PR was already submitted to the docs.

@moberwasserlechner
Copy link
Collaborator

TwitterKit forcing you to do so, does not mean that it is generally a good idea.

Of course you don't have to believe me but please search the web and look for resources which do recommend the usage of code flow and the appSecret in public native apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support
Projects
None yet
Development

No branches or pull requests

2 participants