Angularjs 如何使用URL中的片段实现图形SSO?

Angularjs 如何使用URL中的片段实现图形SSO?,angularjs,typescript,microsoft-graph-api,msal,Angularjs,Typescript,Microsoft Graph Api,Msal,没有更改我的代码,它以前工作过。它停止了工作,工作了几个小时,然后又停止了,尽管我没有改变任何事情: async signIn(): Promise<void> { let result = await this.msalService .loginPopup(OAuthSettings.scopes) .catch((reason) => { console.log('login failed') }); if (result

没有更改我的代码,它以前工作过。它停止了工作,工作了几个小时,然后又停止了,尽管我没有改变任何事情:

async signIn(): Promise<void> {
    let result = await this.msalService
        .loginPopup(OAuthSettings.scopes)
        .catch((reason) => { console.log('login failed') });

    if (result) {
        this.authenticated = true;
        this.user = await this.getUser();
    }
}

您正在尝试使用Microsoft Graph API获取用户列表吗?我正在尝试在登录后获取已登录的用户信息。问题是oauth隐式流与url中的fragement不太兼容。顺便说一句,在url中最好不要有一个片段。我同意,但我没有发言权,因为您是否正在尝试使用Microsoft Graph API获取用户列表?我正在尝试在登录后获取已登录的用户信息。问题是oauth隐式流与url中的片段不太匹配。顺便说一句,在url中最好不要有一个片段。我同意,但我在这个lol中没有发言权
Uncaught Error: Uncaught (in promise): GraphError: 
{
  "statusCode": -1,
  "code": null,
  "message": null,
  "requestId": null,
  "date": "2019-07-19T18:08:59.767Z",
  "body": null
}
``

Edit: Found out the issue is because other developers added a fragment to the url.

The code works with no fragment. Localhost:4200/login
But it does not work with the fragment. Localhost:4200/#/login