NoCommerce 3.80 External Login Plugins - google-oauth

I am new to NopCommerce as well as C# MVC. I am working on NopCommerce 3.80.
As per Instructions I downloaded Google+ Plugin from NopCommerce Official site and Installed it and also configured it.
But when i click on Login with google button, it shows an error of
Google OAuth 2 authorization - Error: redirect_uri_mismatch
Can anybody help me to solve this ?
And another Question is do I have to create a Class Library for the External Authentication as like Facebook(Inbuilt Plugin) ??

The redirect URI that you entered in Google developer console must exactly match the location you are trying to authenticate from this includes the port number I can see in your message.
I don't know enough about nop to tell you if you could use the Google .net client library for your application.

I got the solution.
I haven't given correct callback URL that's why it's showing redirect_uri_mismatch error.
the URL I added is
"localhost:15536/plugins/externalauthGoogle/logincallback/"

Related

Redirect Uri is not working in react native for msal

I have a react-native app in which I am trying to move to msal from adal using the react-native-app-auth library in which finally after authentication I am getting this window that "Only continue if you downloaded the app from a store or website you trust", as clicking any button does not work, I found one issue related (Desktop app + Microsoft Authentication Error) but there is also no solution provided there too and I have tried with the HTTP:// URLs too.
So, did any one of you faced the same issue, so please help in the resolution. The final window I am getting
According to your follow-up comment I notice that you are facing redirect URL issue. In Redirect URI, select Web and type /.auth/login/aad/callback.
For example:https://contoso.azurewebsites.net/.auth/login/aad/callback.
Follow these steps and ensure all steps are followed.
https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad#-create-an-app-registration-in-azure-ad-for-your-app-service-app
Enable Azure active directory in you App Service app.
https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad#-enable-azure-active-directory-in-your-app-service-app

Botframework v4 - Facebook Channel - Operation returned an invalid status code 'Forbidden`

Last year I developed a chatbot with Microsoft Bot Framework that I integrated in the Facebook Messenger of a page. Everything worked fine until 16th of December (last successful log). The page is not used by a lot of people therefore the application might have worked also longer than that.
Today I tried to use the chatbot again and I did not get any response. In the Logs I just found the error message "Operation returned an invalid status code 'Forbidden`".
After a bit of Debugging I found out that the problem is sending messages back to the Facebook Messenger.
context.SendActivityAsync(...)
I did not change any configuration within my Azure Bot Channel registration recently. I am aware of the privacy changes within the Facebook API, but as I already struggle with sending a simple text response like "Hi" I assume that cannot be the problem. Also the permission scheme has changed for Facebook apps. I have the permission for "pages_messaging". Do I need another permission now? Or did I miss another change in the Facebook API?
Technical Details:
Facebook API Version v6 (tried also v9 but no change in behavior)
Chatbot based on .Net Core 2.1
Bot Builder SDK v 4.11
Any hints what I did wrong or where I can look for further information is much appreciated.
Edit: I tried to add a new page to my Facebook App and get following message:
There is a hint that a permission is missing, but I cannot find out which one I require. As I only send responses to FAQ's and if required handover to the customer service inbox I just requested the "pages_messaging" permission. Do I require any other permission now?
I found the problem. For everyone that might have the same problem:
In our case the administrator that added the Facebook pages to the application was removed from the admin permission list of the pages. After re-adding the admin permissions for the pages the bot started working again.

How to implement Google authentication using Xamarin.Forms?

I am developing a login feature in that user can login into the application using the Google account and get user profile detail. For that, I am creating a project in google developers and it's verified by me.
I try with this reference here but when I try with this that is give me the error of "Disallowed user agent" and gives me the error of the open in safari or chrome when I try with the iPhone(iOS devices).
I also go through some other references like "Xamarin. Auth" but it doesn't work for me. When I set a redirection URL with clientId:/oauth2redirect or the Package Name(Bundle Identifier):/oauth2redirect . It gives me an exception of Not valid redirect Uri.
I also try to add JSON and p12 file on respective device-specific projects and set bundle resource but it doesn't work me.
If anyone has solution to this without using WebView than help me.
You can try this plugin from CroosGeeks
https://github.com/CrossGeeks/GoogleClientPlugin
Here is the sample app:
https://github.com/CrossGeeks/GoogleClientPlugin/tree/master/GoogleClient/GoogleClientSample
This is not using the WebView. The documentation is also quite good.

Calendar API (Google Apps Script) Project not found and cannot be used for API calls

I am using Google Apps Scripts following this tutorial.
When I execute the code I get the following error:
Project 719340009941 is not found and cannot be used for API calls. If
it is recently created, enable Calendar API
I went to Resources -> Advanced Google Services and I enabled Calendar. Then I clicked on the link of Cloud Platform project. I could not directly search for calendar API, I had to create a project first (which I called Calendar). I searched for Calendar API and enabled it.
When I am on the calendar API page it tells me: API enabled. I donĀ“t understand why the script gives me the error.
If I visit the project link (which the error provides) I get the following error
The API "calendar.googleapis.com" doesn't exist or you don't have permission to access it
I don't know anything about the different API versions or what a G suite domain is, but if it helps anyone else I resolved this by going to the URL below and hitting the enable button:
https://console.developers.google.com/apis/library/calendar-json.googleapis.com

Jhipster social login via Google

I added clientID and clientSecret (created in Google Developer console) to application.yml but I couldn't get it working. Any idea what is causing error 400. Error: redirect_uri_mismatch. I got http://127.0.0.1:8080 in Authorized JavaScript origins.
I did everything what is said in Google's tutorial, but no luck:
https://developers.google.com/identity/sign-in/web/server-side-flow#step_1_create_a_client_id_and_client_secret
You need to specify in your Google developers console the different redirect url you authorize. For you, you need to add http://127.0.0.1:8080 url.
Little tuto:
Connect to your developer console, click one the main menu
Select API management
Go to Identifiant and select your application, here JHipster
And add your url and save
Another thing that I had to do that wasn't mentioned clearly in the google developer link was to enable the Google+ API.
The various API's are accessible via the Library tab under the Dashboard.