Yii2 User Registration with Google - yii2

I am using Yii2 User module for managing users in my Yii2 project. I have enabled authentication with Google and Facebook. I can login with Google and Facebook, but cannot register a new user with social authentication. It looks like it was possible in previous versions of yii2 user according to this. (https://code.tutsplus.com/tutorials/how-to-program-with-yii2-google-authentication--cms-24987)
However the registration form does not have the links anymore. Isn't this possible now?
PS I have "dektrium/yii2-user": "0.9.*#dev", in my composer

Related

Facebook Login not using Instagram_basic permission request

I'm having some issues authenticating my Instagram account and "approving" the right so that the application can use the images from my corporate Instagram account.
Using this documentation to follow our guide: https://developers.facebook.com/docs/instagram-api/getting-started
Here is what I have completed:
An Instagram Business Account or Instagram Creator Account
This has been completed and the Instagram account is a business account
A Facebook Page connected to that account
This has been completed and linked to the Instagram account (Both the Instagram account and the Facebook page are in our Business Manager panel)
A Facebook Developer account that can perform Tasks on that Page
Using my account with all the permissions granted such as (Owner, developer, etc..)
A registered Facebook App with Basic settings configured:
All the details have been completed and signed
Business Verification/Supplemental Terms
My Approved Permissions and Features:
Approvals
The Facebook Login button is displayed inside our WordPress settings panel:
Login Button
Problem:
When I click on the Facebook login button, I only get authenticated to provide my "email address", but instead I need the permissions for Instagram_basic, manage_pages that we're approved.
Only email is being asked
Code: In the code, I have the instagram_basic and manage_pages scopes defined.
<fb:login-button scope="public_profile,email,instagram_basic,manage_pages" onlogin="checkLoginState();"></fb:login-button>
Does anyone know what I might be doing wrong?
Had the same, just click continue and there will be another windows which asks you to confirm the access to instagram and the pages you want the app to have access to.

Chatbase Login Integration

I integrated my application with the chatbase, but I would like my clients to have direct access to their email directly, as if it were a single step.
When I click a button in my application, it is directed to the logged-in chatbase screen.
Today I can only get it to the login screen, where it is still necessary to put the password to go to the dashboard, not logging directly into the application.
Is this possible? if yes, is there any kind of quickstart?
I followed the tutorial below to get to the login area, remembering that I use node.js
https://scotch.io/tutorials/easy-node-authentication-google
Thank you for your interest in Chatbase. There is currently no support for OAuth logins. Please see our recommended steps for third party integrations below:
Have the user open a Chatbase account with a Google linked email address
Have the user create a Bot in order to obtain the API key
Have the user integrate their analytics on your platform by providing the API key
Send the messages from their bot to their Chatbase API
Provide the user deeplinks to the Chatbase reports from within your UI

Integrating Grafana in to angularjs application with auto login and get user specific dashboard?

I want to integrate grafana into my angularjs web application for monitoring purpose. I want something through which I can redirect to grafana dashboard with credentials by surpassing the grafana login page , means direct dashboard page should be displayed of logged in user of grafana. Session management should be there like dashboard data should be user specific. Please provide details to achieve this, thanks
You can probably use something like grafana auth proxy with a 3rd party authentication service or your own service.
You can load the dashboard by embedding an iframe
http://grafana-reverse-proxy/dashboard/db/{{dashboard}}?orgId=abc
Note: The url points to the reverse proxy which will authenticate your user which you pass from your angularjs app.
Alternatively if you want roles to assigned to your users, you can integrate ldap and map roles to users.
Same can be achieved with generic oauth if you have a auth service.

Yii2 restrict user to manage (edit/delete) his own content

I am new to Yii2 ( I have used Yii previously).
Is there any straight forward way in Yii2 through which a user can be restricted to edit/delete his own content. for eg.
I have some posts in my system.Published posts can be seen by anyone.(only owner can view unpublished posts).
A post can be edit/delete by only content owner or Admin
You can use the components provided by Yii2 for the authorization and control of access to the actions permitted to a user. To do this you should take a look at this:
Yii user Authentication

Box Api Enterprise

I am asked by my company to do a Proof-Of-Concept for our document management using Box. We have an enterprise account.
What I did is I added an app in my account - to get my api keys ("client_id" and "client_secret").
Then after this Using the Box Api for .net4.0, I manage to connect my MVC app with our box account using OAuth2.
I can now view files and folders as well as uploading files.
Now my problem is I need to restrict the files that can be viewed by the user logged.
I noticed that when changing the email that is use to log-in (we're using SSO)
The user info doesn't change.
I am using GetCurrentUserInformationAsync() method of the BoxApi V2.
Is it possible to perform user management using API?
(P.S. I am not the admin of our enterprise account)
Thanks
To change the email, you will be require the admin rights. First you need to create the email alias for that account and then you can replace the primary email address with your alias.