Skip to content

Custom oAuth2 stopped working #4677

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

Closed
markuswinkler opened this issue Mar 26, 2018 · 2 comments
Closed

Custom oAuth2 stopped working #4677

markuswinkler opened this issue Mar 26, 2018 · 2 comments

Comments

@markuswinkler
Copy link

markuswinkler commented Mar 26, 2018

Issue Description

I have a custom oAuth2 configuration for linkedIn that worked fine until recently.
The oAuth2 redirect url doesn't get handled anymore.
Anyone else ran into that problem?

Expected Results

redirect to the custom oAuth2 handler

Actual Outcome

displays "Cannot get /oauth/linkedin"

Environment Setup

config file:

const api = new ParseServer({
	databaseURI: databaseUri,
	databaseOptions: {
		poolSize: 10,
		reconnectTries: 15,
		socketOptions: {keepAlive: 1, connectTimeoutMS: 30000},
		auto_reconnect: true
	},
	cloud: process.env.CLOUD_CODE_MAIN || __dirname + "/cloud/main.js",
	appId: process.env.APP_ID,
	masterKey: process.env.MASTER_KEY,
	serverURL: process.env.SERVER_URL,
	enableAnonymousUsers: false,
	allowClientClassCreation: false,
	facebookAppIds: process.env.PARSE_SERVER_FACEBOOK_APP_IDS,
	auth: {
		facebook: {
			appIds: [process.env.PARSE_SERVER_FACEBOOK_APP_IDS ]
		},
		linkedin_crypt: {
			module: "../../../../cloud/linkedin_encrypt.js"
		}
	},
	push: {
		adapter: oneSignalPushAdapter
	}
});
  • Server
    • parse-server version : 2.7.4
    • Operating System: AWS Linux
@flovilmart
Copy link
Contributor

Parse server doesn’t handle oauth redirection for you, so have a look into the LinkedIn documentation, they may have changed something there.

@markuswinkler
Copy link
Author

Found what caused it. iOS >= 11.2 breaks Universal Links. 😡
Work around was to use a UIWebView with a local url scheme instead of SFSafariViewController.
Thought I post this here in case anybody else runs into this issue.

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