How to fix “400 Error: invalid_request Invalid parameter value for redirect_uri: Missing scheme: /api/oauth2/loginResponse”?

Issue: Oauth  login fails with an error as below:

Error: invalid_request

Invalid parameter value for redirect_uri: Missing scheme: /api/oauth2/loginResponse

Reason: The redirect_uri is not containing the full URL because Custom URL Base” is not filled up in Artifactory. 

Resolution: Fill up the Custom URL Base in Artifacotry to the base URL of Artifactory that your users need to access Artifactory with. For example, it can be https://my_company_artifactory:444/artifactory or https://mysite.jfrog.io/mysite

Also, please confirm that your Google OAuth configuration page has the Custom URL Base above plus “/api/oauth2/loginResponse” included in its “Authorized redirect URIs. For example: