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

Unable to use with Google #53

Open
david-quadpro opened this issue Sep 5, 2017 · 4 comments
Open

Unable to use with Google #53

david-quadpro opened this issue Sep 5, 2017 · 4 comments

Comments

@david-quadpro
Copy link

I have used the plugin to try to get a Google auth token.

`export class GoogleDriveService {

private googleInitOptions: tnsOAuthModule.ITnsOAuthOptionsGoogle = {
	clientId: '1234-xxx.apps.googleusercontent.com', //client id for application (GUID)
	scope: ['https://www.googleapis.com/auth/drive.metadata.readonly']
};
constructor(
) {
	tnsOAuthModule.initGoogle(this.googleInitOptions);
	tnsOAuthModule.ensureValidToken()
}

When the app runs it displays the Google Error: disallowed_useragent, as shown below. I have tried with a client ID of type Web application and also Android and both give the same error.

Any suggestions?

David

screenshot_2017-09-05_19-47-07

@alexziskind1
Copy link
Owner

alexziskind1 commented Sep 6, 2017 via email

@david-quadpro
Copy link
Author

Hi Alex,

Thank you for the prompt reply. I am at this point only connecting to Google. Future plans include Dropbox and OneDrive.

Are you able to suggest an alternative {N} plugin or point me in the direction of how to manually redirect to a chrome or safari instance and then back to my app.

TIA,

David

@jdmcnair
Copy link

jdmcnair commented Jan 6, 2018

Does nativescript-oauth use an embedded browser for authenticating with the OAuth provider @alexziskind1? Is it related to this change?

I wonder if the discussion here is relevant to finding a solution?

@alexziskind1
Copy link
Owner

alexziskind1 commented Jan 6, 2018 via email

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

3 participants