B4G login: the redirect_url is not associated with this application
search cancel

B4G login: the redirect_url is not associated with this application

book

Article ID: 419739

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Endevor Bridge for Git is configured using Github enterprise cloud. 

Tried to login to Bridge for Git application by clicking "Login with Github" and got

 

Environment

Endevor v19

Endevor Bridge for Git v2.15.10

Cause

The callback URL in the gitbub application for Bridge for Git is set to https://<your-bridge-for-git-instanace>

Some git server such as GitHub enterprise cloud requires the complete callback URL - that is: 

https://<your-bridge-for-git-instanace>/oauth2/callback/github

Resolution

Update the gitbub application for Bridge for Git, and set the callback URL as
https://<your-bridge-for-git-instance>/oauth2/callback/github

Also check the application.yml, since the github enterprise cloud is usually behind a proxy server:

app:
  git-bridge:
   url: https://proxy.company.com

app:
  github:
   oauth2:
    override-redirect: true