嗨,我正在Angular 2中开发Web应用程序。我在webapi中具有oauth身份验证。我在前端使用Angular 2。登录时,我正在调用以下代码。
private login() {
this.oauthService.initImplicitFlow();
this.oauthService.loginUrl = "https://login.microsoftonline.com/d35ba220-6896666-4acc-9899-dc75131c4fba/oauth2/authorize?resource=\"https://graph.windows.net/ \"& response_type=code";
this.oauthService.redirectUri = "http://localhost:65298";
this.oauthService.clientId = "<MY_CLIENT_ID>";
this.oauthService.issuer = "https://login.microsoftonline.com/d35ba220-6749-4acc-578787-dc75131c4fba";
this.oauthService.oidc = true;
this.oauthService.setStorage(sessionStorage);
this.oauthService.tryLogin({});
}
Run Code Online (Sandbox Code Playgroud)
我正在错误以下。
http://localhost:65298/?error=unsupported_response_type&error_description=AADSTS70005%3a+
The+WS-Federation+sign-in+response+message+contains+an+unsupported+OAuth+parameter+value+in+the+encoded+wctx%3a+%27response_type%27%0d%0aTrace+ID%3a+65dc2592-4ba1-42f6-9f24-eba1c1894900%0d%0aCorrelation+ID%3a+6edaf003-3d26-434b-9b8a-88a267feb350%0d%0aTimestamp%3a+2018-01-17+09%3a09%3a39Z&state=9MnA2eD68aZtOvHSodIjX9IqA1NdSjslrnGaFAlL
Run Code Online (Sandbox Code Playgroud)
有人可以帮我解决这个问题吗?