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

OAuth2 with custom provider #563

Closed
fabio-manzo opened this issue Jul 5, 2024 · 6 comments
Closed

OAuth2 with custom provider #563

fabio-manzo opened this issue Jul 5, 2024 · 6 comments

Comments

@fabio-manzo
Copy link

Hi all,
this is my configuration:
"oauth2": { "enable": true, "client_id": "XXX", "client_secret": "XXX", "project_id": "APP-XXX", "auth_uri": "https://XXX/authorize", "token_uri": "https://XXX/access_token", "redirect_uri": "https://homer/api/v3/oauth2", "profile_url": "https://XXX/userinfo", "provider_name": "auth", "scope": ["email", "openid", "profile"], "provider_image": "" },

I get the login page, but when i get redirected to redirect + / + provider_name i get this page:
{"message":"invalid or expired jwt"}

I tried changing the redirect_uri as "https://homer/api/v3/oauth2/auth" and the provider_name as "myprovidername" but then I get:
{"data":{},"message":"Post "https://XXX/access_token\": tls: failed to verify certificate: x509: certificate signed by unknown authority"}

Copy link

github-actions bot commented Jul 5, 2024

Your report is appreciated. Please star this repository to motivate its developers! ⭐

@fabio-manzo
Copy link
Author

Please anyone? The provider return a cookie with 2 values (bwen, wen), should I change something on my side? Or on the provider side?

@lmangani
Copy link
Member

lmangani commented Jul 9, 2024

Your report is appreciated. Please star this repository to motivate its developers! ⭐

image

@fabio-manzo
Copy link
Author

fabio-manzo commented Jul 10, 2024

Hi, I already starred the project after the first message. I would like to do more but I'm not in position to take this choice by myself and considering the auth it's not working I cannot still ask for it

@adubovikov
Copy link
Member

so, the problem is that your provider uses self sign certificate, can you do/change it to letsencrypt ?

@adubovikov
Copy link
Member

so as I wrote above, please use letsencrypt or add exception for your self generated certificate. The issue will be closed.

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