小编Mun*_*rma的帖子

缺少auth0的userInfo中的user_metadata

对于身份验证,我使用的是Auth0 AuthenticationApi.在Account Controller中,我需要获取user_metadata但它已丢失.获取user_metadata的任何替代方法?

AuthenticationApiClient client = new AuthenticationApiClient(new Uri($"https://{_auth0Options.Domain}/"));

               var authenticateResponse = await client.GetTokenAsync(new ResourceOwnerTokenRequest
                {
                    ClientId = _auth0Options.ClientId,
                    ClientSecret = _auth0Options.ClientSecret,
                    Scope = "openid",
                    Realm = _auth0Options.Connection,
                    Username = vm.EmailAddress,
                    Password = vm.Password
                });
                var user = await client.GetUserInfoAsync(authenticateResponse.AccessToken);
                if (user.UserMetadata != null)
                {
        // Giving error...any alternative to access the userMetaData ?
                }
Run Code Online (Sandbox Code Playgroud)

authentication model-view-controller oauth-2.0 auth0

5
推荐指数
1
解决办法
361
查看次数

如何在angular2中将HTML转换为pdf?

我需要将动态生成的html表转换为pdf并且能够打印它.我需要在angular2和Typescript中完成它.

pdf html-to-pdf typescript angular

4
推荐指数
1
解决办法
9120
查看次数