Replies: 1 comment 5 replies
-
Hi, Thanks for sharing this. You were right about the issuer url. Ive changed it to match. It will use https://example.com without any paths and consistent now. Best regards, |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is anyone else authenticating external services to Group-Office using its OAuth server feature?
I just had a play with it, and getting Bookstack to work with it required modifying code on both sides - but it's more-or-less working for authentication (account creation not tested yet, I'm not ready for that yet).
But it feels that what I had to do to get it working was a bit hacky. I'm not sure if I found a bug in Group-Office or not, is there anyone who is more familiar with OAuth/OpenID able to check?
In Bookstack, I had to modyfy app/Auth/Access/Oidc/OidcOAuthProvider.php, in order for Group-Office to talk to it as Group-Office doesn't provide the 'Profile' scope:
And in Group-Office I had to modify how it constructs
.well-known/openid-configuration
so thatissuer
matched theiss
response it delivered in the authorization tokens (otherwise Bookstack would reject it as not matching):issuer
in openid-configuration andiss
in the issued tokens are supposed to match (presently they don't,iss
also appears to return the value as $endpointBase, being the full URL to /groupoffice/api/oauth.php - BookStack rejects this).It would be better to fix the token's 'iss' value but I haven't found where that's set, can anyone shed some light on that?
With that done, it worked. I set the following in BookStack's
.env
configuration file:So yeah it works, but it doesn't feel quite right. Interested to hear other people's efforts with having Group-Office provide OAuth to other services!
Beta Was this translation helpful? Give feedback.
All reactions