sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 81 forks source link

OAuth2 with custom provider #563

Closed fabio-manzo closed 1 month ago

fabio-manzo commented 3 months ago

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"}

github-actions[bot] commented 3 months ago

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

fabio-manzo commented 2 months ago

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 commented 2 months ago

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

image

fabio-manzo commented 2 months ago

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 commented 1 month ago

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

adubovikov commented 1 month ago

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