blazor-webassembly

How to get the id_token in blazor web assembly

北城以北 提交于 2020-08-10 19:54:51
问题 I have got a Blazor WebAssembly (latest 3.2.0) app with oidc Authentication. The asp.net authentication provides a way to get the accessToken but can't see any means to access the id_token (jwt) which is required for my scenario. I can see the id_token in the local storage of the browser. What would be best way to access it? Thanks 回答1: You can read it from the session storage using JSInterop, it is stored at key oidc.user:{app baseUri}:{app client id} : @inject IJSRuntime JSRuntime @inject

Invoking C++ dll in Blazor client webassembly

↘锁芯ラ 提交于 2020-08-10 18:56:26
问题 I am trying to invoke C++ DLL in my client webassembly blazor application . However, I am not able to succeed in this. I am using the following syntax to invoke the dll , however receiving error . Can anyone help me is Blazor webassembly is supporting invocation of C++ native dll in the client C# code or NO . I am using the following syntax to call dll from app. [DllImport("SampleDll.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int Add(int a, int b); Thanks in

Invoking C++ dll in Blazor client webassembly

僤鯓⒐⒋嵵緔 提交于 2020-08-10 18:56:18
问题 I am trying to invoke C++ DLL in my client webassembly blazor application . However, I am not able to succeed in this. I am using the following syntax to invoke the dll , however receiving error . Can anyone help me is Blazor webassembly is supporting invocation of C++ native dll in the client C# code or NO . I am using the following syntax to call dll from app. [DllImport("SampleDll.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int Add(int a, int b); Thanks in

How do I get the id_token in Blazor WebAssembly after authenticating with OpenId (Cognito)?

六月ゝ 毕业季﹏ 提交于 2020-08-09 08:15:33
问题 I've got a .Net Core 3.1 WebApi backend. I've got a Blazor WebAssembly front-end. I'm trying to login on the front-end (works) to AWS Cognito (setup as an OpenId provider) and then pass a Bearer token (JWT) to my backend API on each request so that the backend API can access AWS resources using temporary credentials (CognitoAWSCredentials). I am able to pass a Bearer token on each request from my Blazor front-end to the backend, however the only token I can find to access in Blazor is the

How do I get the id_token in Blazor WebAssembly after authenticating with OpenId (Cognito)?

前提是你 提交于 2020-08-09 08:14:42
问题 I've got a .Net Core 3.1 WebApi backend. I've got a Blazor WebAssembly front-end. I'm trying to login on the front-end (works) to AWS Cognito (setup as an OpenId provider) and then pass a Bearer token (JWT) to my backend API on each request so that the backend API can access AWS resources using temporary credentials (CognitoAWSCredentials). I am able to pass a Bearer token on each request from my Blazor front-end to the backend, however the only token I can find to access in Blazor is the