What I have to set for 1:1 chatting with blazor assembly - chat

I'm using blazor assembly 6.0 and using jwt token authrization and social login.
I want to add 1:1 chatting and want to identify user by aleardy logined userId or token.
I found related document but I don't know how to apply.
Is there any example of git repository or posting that actually use this way?

Related

Identity Providers with Xamarin Forms and Azure

I'm a bit confused about Identity Providers in a project I'm doing with Xamarin Forms.
I configured Facebook as an IP with Azure Mobile Apps following this page
https://learn.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-how-to-configure-facebook-authentication
It works, but my doubt is, how can I use the MobileServiceUser result of the authentication process to, for example, post to Facebook or get personal information from Facebook. Is this possible?
Thanks!
This is how I think about it.
Identity providers are used to provide a third party guarantee of WHO a user is.
The Mobile SDK lets you do Authorization. So you can decide WHAT the user can do on YOUR service after you know WHO they are.
Any thing you are doing via facebook would still need to be done through the Facebook API/SDK using the token their Authentication process returned to you.
Finally I found the solution to my problem.
What I was trying to do is get information from Facebook after I have authenticated myself.
All I had to do was invoke
await client.InvokeApiAsync("/.auth/me");
After authentication and thats all, the response of that request has the token to access the Facebook API. These tokens are saved in Azure.
For more information:
https://cgillum.tech/2016/03/07/app-service-token-store/
Thanks!

Liferay login API from Ionic App

I want to know if there is any API/Webservice in side Liferay that allows one to use mobile apps especially built with Ionic to do remote authentication and pull data from database
There's no special API for Login/Logout out of the box.
Complete list of Out of the BOX Web Services and detailed information on each can be found at
whaterver-url/api/jsonws
Example : https://www.liferay.com/api/jsonws
Why there is no Out of the Box API For Login/Logout.
All API's mentioned in above Link needs a basic Authentication. So in each request you need to pass username & password which will throw permission denied, if credentials are not valid.

Usercake login associated with facebook login

My website has a registration and access system that uses "usercake" system. Now, following the directions on http://www.krizna.com/demo/login-with-facebook-using-php/ , I managed to include a table in the database that stores the fields for each access by working facebook login. The registration details and access with usercake are stored in another tabella.If someone knows the class_user.php files, login.php, funcs.php, config.php, i ask : "is it possible to link data from the two tables so that you have both traditional access with usercake both access and with button "facebook" login?
Why not use UserSpice? Yuu can upgrade usercake 2.0.2 all the way to UserSpice current and use the built in Facebook (and Google) oauth.

how do they differentiate between internal and external application using Oauth2

Suppose I have a Web Service API defined and would like to implement OAuth Server to provide access to third-party mobile application and my own mobile application.
As these two types of application(internal/external) will try to access my API, what are the possible mechanisms that my authentication server differentiate them?
As an Example, Consider a Facebook app and Lyft (External).While login to facebook through Lyft, fb recognizes it as third-party app and ask for permission level but in Facebook(Internal) app they don't ask permission level. How do they do it?
*Please correct me, if I am wrong here.
OAuth 2.0 differentiates between clients/applications by granting them their own set of client credentials in the form of an identifier and a shared key, respectively named client_id and client_secret.

Use OAuthWebSecurity With MVC 3.0 with custom membership provider

I am looking for how can I implement OAuthWebSecurity with Mvc 3
I have a custom membership provider and I would like to add Facebook, Google and Twitter authentication to my website.
Authentication scenario using Facebook for example
1- the user chooses login using Facebook.
2- check Facebook authentication
3- if success --> check if the user exist in my database
4- if exist --> make the user logged in, if not create a new user in my custom user table
Please advice.
Please See Below Link It Give you Fully Information about it
http://www.asp.net/mvc/tutorials/security/using-oauth-providers-with-mvc
Here is a sample / template project which implements a custom membership provider based on the Entity Framework, it has custom DB schema, external login / signup functionality via Google, Twitter, Facebook...
https://github.com/kriasoft/site-sdk