Я выполнил проверку подлинности Google с веб-API 2 и получать следующее сообщение об ошибке:Данный URL не допускается CLIENT_ID
The given URL is not allowed by Client_id 'ngAuthApp' configuration.
Это работает, когда я меняю AllowedOrigin
к (localhost)
, но не работает в api.mytouchstones-uat.net
в таблице клиента после того, как лазурь выпуск.
Мой код выглядит следующим образом:
// Enable the application to use bearer tokens to authenticate users
app.UseOAuthBearerTokens(OAuthOptions);
//Configure Google External Login
googleAuthOptions = new GoogleOAuth2AuthenticationOptions()
{
ClientId = Common.Constant.GoogleClientId,
ClientSecret = Common.Constant.GoogleClientSecret,
Provider = new GoogleAuthProvider()
};
app.UseGoogleAuthentication(googleAuthOptions);
У вас возникли проблемы с решением/выяснить это? –