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

Invalid redirect_uri problem in External Provider #15936

Closed
huseyinalan opened this issue Mar 10, 2023 · 6 comments
Closed

Invalid redirect_uri problem in External Provider #15936

huseyinalan opened this issue Mar 10, 2023 · 6 comments

Comments

@huseyinalan
Copy link
Contributor

We are using DomainTenantResolver.
We want to add LinkedIn as external provider.
LinkedIn has filter for redirect_uri and doesn't allow wildcards.

When tenant wants to login with provider, the redirect_uri param being something like <tenant>.mydomain.com
and provider reject this uri.
Also found this issue but not solved. #4708
We don't have chance add every tenant uri to provider

How can i solve this problem?

@maliming
Copy link
Member

@huseyinalan
Copy link
Contributor Author

Hi,
I tried again but didn't work.
I followed these steps:

  1. Clone sample project
  2. Create project on Google
  3. Add OAuth Client in Google

image

image

  1. Configure ClientId & Secret in Abp Project

image

5. Run Abp Project
6. Login with google in host side

image

(Successfull)

7. Switch to tenant by domain tenant resolver, try login with google

(Error)

@maliming
Copy link
Member

If google does not support wildcard domain, you have to add all tenant urls here.
Maybe google has related http apis.

image

@huseyinalan
Copy link
Contributor Author

Yes google doesn't allow wildcard in redirect uri.
We gonna use multiple provider like LinkedIn, Google and we have a little too many tenants so we can't enter them manually also we can't manage properly.

I looked for API but couldn't find it.

Is there any other solution?

@maliming
Copy link
Member

In fact, this is the restriction of providers such as Google, and there is nothing we can do.

@huseyinalan
Copy link
Contributor Author

Ok i understand, thanks for your effort

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