Getting 404 error logging into BridgeForGit
search cancel

Getting 404 error logging into BridgeForGit

book

Article ID: 394684

calendar_today

Updated On: 04-17-2025

Products

Endevor

Issue/Introduction

Got following error when trying to logging into Bridge for Git application:

org. springframework.security. oauth2.core.OAuth2AuthenticationException: [invalid_user_info_response] An error occurred while attempting to retrieve the UserInfo Resource: 404 Not Found: "{"error":"Not Found}"

Environment

Endevor V19

Bridge for Git 2.15.9

Cause

Site is using Github Enterprise cloud. 
Application.yml is missing app.github.api-url setting. 

Note that The GitHub Enterprise Cloud REST API requires a different URL than GitHub Enterprise Server installations.

Resolution

Update the application.yml and add app.github.api-url setting

  github:
    # GitHub Enterprise Server URL (e.g: http://github.example.net)
    url: https://github.com
    #  GitHub Enterprise Cloud REST API URL
    api-url: https://api.github.com


    # GitHub Enterprise GitHub App public link (e.g: http://github.example.net/github-apps/bridge-for-git)
    app-public-link: https://github.com/apps/XXXX

    # The GitHub App properties can be found on GitHub: User Account > Settings > Developer settings > GitHub Apps
    oauth2:
      # GitHub App Client ID
      client-id: xxxxxxxxxxxxxxxxxxxxxxx

      # GitHub App Client secret
      client-secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

Restart Bridge for Git application after the change.  

Additional Information