Question Looking for test users for a new custom module: OAuth 2.0 single sign on
- Franz Frese
- Offline
- Elite Member
Less
More
2 weeks 3 days ago #41
by Franz Frese
Replied by Franz Frese on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
Proposed text for admin click to enable enter of Password for user:
Die Möglichkeit der Eingabe eines Passwortes unter "Meine Seiten", "mein Konto" wird freigeschaltet.
Dadurch ist das übliche webtrees - Anmelden (Benutzername - Passwort) möglich.
Ein generiertes Passwort zum Anmelden wird eventuell vorgeschlagen (Google).
analog in English (ist nicht meine Muttersprache, daher kein Vorschlag)
Die Möglichkeit der Eingabe eines Passwortes unter "Meine Seiten", "mein Konto" wird freigeschaltet.
Dadurch ist das übliche webtrees - Anmelden (Benutzername - Passwort) möglich.
Ein generiertes Passwort zum Anmelden wird eventuell vorgeschlagen (Google).
analog in English (ist nicht meine Muttersprache, daher kein Vorschlag)
Please Log in or Create an account to join the conversation.
- Yuk
- Offline
- New Member
Less
More
- Posts: 21
2 weeks 3 days ago #42
by Yuk
Replied by Yuk on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
I didn't know about that. Unfortunately, I don't have a company, but many of my users do use FB, and I thought it could be a good idea, if they can use their accounts. Oh well.
I'll give your module a try anyway. Thanks!
I'll give your module a try anyway. Thanks!
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
2 weeks 2 days ago - 2 weeks 2 days ago #43
by Franz Frese
Replied by Franz Frese on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
I have tried with dropbox using
www.dropbox.com/developers/apps/create
.
I was not successful.
I got a clientId, a clientSecret and entered urlAuthorize='[url] www.dropbox.com/oauth2/authorize [/url]'
I can generate an access token on www.dropbox.com/developers/apps/info/ , but I am not sure if that is the one I need for your app.
I used urlResourceOwnerDetails='' meaning empty.
what more info do you need to help me setting login work with dropbox?
I was not successful.
I got a clientId, a clientSecret and entered urlAuthorize='[url] www.dropbox.com/oauth2/authorize [/url]'
I can generate an access token on www.dropbox.com/developers/apps/info/
I used urlResourceOwnerDetails='' meaning empty.
what more info do you need to help me setting login work with dropbox?
Last edit: 2 weeks 2 days ago by Franz Frese.
Please Log in or Create an account to join the conversation.
- Jefferson49
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 280
2 weeks 2 days ago #44
by Jefferson49
You can try to connect to dropbox with the Generic client. In the Readme you can find a chapter about the configuration of the Generic client .
From what I found in the dropbox documentation , you can use the following configuration:
I am not sure if this works, but you can try. If it does not work with the Generic client, it might be an option to integrate the Leage/dropbox client .
Replied by Jefferson49 on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
I have tried with dropbox using www.dropbox.com/developers/apps/create .
I was not successful.
I got a clientId, a clientSecret and entered urlAuthorize='[url] www.dropbox.com/oauth2/authorize [/url]'
I can generate an access token on www.dropbox.com/developers/apps/info/, but I am not sure if that is the one I need for your app.
I used urlResourceOwnerDetails='' meaning empty.
what more info do you need to help me setting login work with dropbox?
You can try to connect to dropbox with the Generic client. In the Readme you can find a chapter about the configuration of the Generic client .
From what I found in the dropbox documentation , you can use the following configuration:
Code:
Generic_clientId='xxx'
Generic_clientSecret='xxx'
Generic_urlAuthorize='https://www.dropbox.com/oauth2/authorize'
Generic_urlAccessToken='https://www.dropbox.com/oauth2/token'
Generic_urlResourceOwnerDetails='https://api.dropbox.com/2/users/get_current_account'
Generic_signInButtonLabel='xxx'
I am not sure if this works, but you can try. If it does not work with the Generic client, it might be an option to integrate the Leage/dropbox client .
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
2 weeks 2 days ago - 2 weeks 2 days ago #45
by Franz Frese
Replied by Franz Frese on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
gives
Invalid response received from Authorization Server. Expected JSON. …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:894
#0 …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(874): League\OAuth2\Client\Provider\AbstractProvider->fetchResourceOwnerDetails()
#1 …/modules_v4/oauth2_client/src/Provider/GenericAuthorizationProvider.php(80): League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()
#2 …/modules_v4/oauth2_client/src/LoginWithAuthorizationProviderAction.php(183): Jefferson49\Webtrees\Module\OAuth2Client\Provider\GenericAuthorizationProvider->getUserData()
#3 …/app/Http/Middleware/RequestHandler.php(52): Jefferson49\Webtrees\Module\OAuth2Client\LoginWithAuthorizationProviderAction->handle()
....
Invalid response received from Authorization Server. Expected JSON. …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:894
#0 …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(874): League\OAuth2\Client\Provider\AbstractProvider->fetchResourceOwnerDetails()
#1 …/modules_v4/oauth2_client/src/Provider/GenericAuthorizationProvider.php(80): League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()
#2 …/modules_v4/oauth2_client/src/LoginWithAuthorizationProviderAction.php(183): Jefferson49\Webtrees\Module\OAuth2Client\Provider\GenericAuthorizationProvider->getUserData()
#3 …/app/Http/Middleware/RequestHandler.php(52): Jefferson49\Webtrees\Module\OAuth2Client\LoginWithAuthorizationProviderAction->handle()
....
Last edit: 2 weeks 2 days ago by Franz Frese.
Please Log in or Create an account to join the conversation.
- Franz Frese
- Offline
- Elite Member
2 weeks 1 day ago #46
by Franz Frese
I did the debug with dropbox:
Replied by Franz Frese on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
there is no email at the left side....
If you are interested, you can contact me by email (see left side).
...
I did the debug with dropbox:
Please Log in or Create an account to join the conversation.
- Jefferson49
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 280
2 weeks 1 day ago #47
by Jefferson49
I can reproduce the error in my test system. Dropbox cannot be configured with the Generic client. Therefore, I integrated a specific League Drobbox client. In my test system, it already works. I will provide an update in the next days.
Replied by Jefferson49 on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
gives
Invalid response received from Authorization Server. Expected JSON. …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:894
#0 …/modules_v4/oauth2_client/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(874): League\OAuth2\Client\Provider\AbstractProvider->fetchResourceOwnerDetails()
#1 …/modules_v4/oauth2_client/src/Provider/GenericAuthorizationProvider.php(80): League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()
#2 …/modules_v4/oauth2_client/src/LoginWithAuthorizationProviderAction.php(183): Jefferson49\Webtrees\Module\OAuth2Client\Provider\GenericAuthorizationProvider->getUserData()
#3 …/app/Http/Middleware/RequestHandler.php(52): Jefferson49\Webtrees\Module\OAuth2Client\LoginWithAuthorizationProviderAction->handle()
....
I can reproduce the error in my test system. Dropbox cannot be configured with the Generic client. Therefore, I integrated a specific League Drobbox client. In my test system, it already works. I will provide an update in the next days.
Please Log in or Create an account to join the conversation.
- Jefferson49
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 280
2 weeks 1 day ago - 2 weeks 1 day ago #48
by Jefferson49
Replied by Jefferson49 on topic Looking for test users for a new custom module: OAuth 2.0 single sign on
Just checked it. In the settings, my email is set to visible for registered members. I dont know what happened, but some days ago it was still visible below the user icon on the left side. Maybe, something has changed in the forum or is not working at the moment. You can post an issue on Github or contact me: here .there is no email at the left side.
Last edit: 2 weeks 1 day ago by Jefferson49.
Please Log in or Create an account to join the conversation.