1
auth0.net(Auth0 APIの.NETクライアント)を使用して認証しようとしていますが、Auth0.Core.Exceptions.ApiException
というエラーとHTTPステータスコードNotFound (404)
が発生します。ここで間違っている何auth0.netを使用して認証APIを呼び出すときに404を取得する
var client = new AuthenticationApiClient(new Uri(Auth0Url));
var authenticationRequest = new AuthenticationRequest();
authenticationRequest.ClientId = ClientId;
authenticationRequest.Username = username;
authenticationRequest.Password = password;
authenticationRequest.Connection = "Username-Password-Authentication";
AuthenticationResponse response = null;
Task.Run(async() =>
{
response = await client.AuthenticateAsync(authenticationRequest);
}).Wait();
:
私は、次のコードを使用していますか?管理APIは正常に動作し、ClientID
は正しいです。
'Auth0Url'変数の内容は何ですか?公開したくない場合は、ドメイン内のテナント名の部分を省略/変更することができます。 –
@João、とても良い質問です!私には恥ずべき!管理APIで使用されているものと同じでなければなりません。 – amuliar