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}"
Endevor V19
Bridge for Git 2.15.9
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.
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.