YOURLS-AuthMgrPlus icon indicating copy to clipboard operation
YOURLS-AuthMgrPlus copied to clipboard

Incompatible with https://github.com/8thwall/google-auth-yourls ?

Open yusufk opened this issue 5 years ago • 7 comments

Hi

I tried using this plugin together with google-auth-yourls and it seems to be incompatible. Added the email address I used to authenticate into the administrator list and I get: Require permissions to show admin interface.

yusufk avatar Aug 31 '20 19:08 yusufk

When using google-auth-yourls, what is the listed username in the admin interface after logging in? Does it display the email address?

joshp23 avatar Sep 02 '20 12:09 joshp23

If you can provide me with temporary Google OAuth client secrets, etc, for your domain, I can set up a testing environment and begin working on compatibility.

joshp23 avatar Sep 03 '20 21:09 joshp23

It doesn't seem to set a username, as it bypasses the auth flow.

yusufk avatar Nov 11 '20 21:11 yusufk

The only way to make this work is to retrieve some of whatever data google returns upon login and tie that to a local AMP user. There is nothing listed near the logout button in YOURLS?

joshp23 avatar Mar 12 '21 05:03 joshp23

We were looking at this plugin, but are also using the Google Auth plugin. No--there is no logout button either, actually. I think OATH is setting a cookie that YOURLS respects as authenticated, but no user data is shared? Not positive.... Would be cool to get these working together though!

nrasmus avatar May 04 '21 19:05 nrasmus

This PR for google-auth-URLS promises to fix this--but we haven't gotten that code working with our install yet.

nrasmus avatar May 05 '21 20:05 nrasmus

@nrasmus it does fix it just hasent been commited then all you do is put users full email into one of the sections $amp_role_assignment = array( 'administrator' => array( ''[email protected]', ), 'editor' => array( '[email protected]', ), 'contributor' => array( ''[email protected]', ), I know this is old thread and sorry for addind to it.

keithdhsb avatar Jan 25 '23 09:01 keithdhsb