Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.
  • Page:
  • 1

TOPIC:

OAuth2 redirect URI 14 hours 32 minutes ago #9651

  • juzi
  • juzi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi, I am trying to establish an OAuth2 connection via keycloak sso. I can reach the realm's site, but then I get either "Wrong Redirct URI" or " too many redirects".
What I have done so far:

auth_config.php
$xerte_toolkits_site->altauthentication = "Oauth2";

library/Xerte/Authentication/Oauth2.php (just removed the .dist)

library/Xerte/Authentication/Oauth2_config.php
$oauth2config = array(
'CLIENT_ID' => 'myclientid',
'CLIENT_SECRET' => 'mysecret',
'REDIRECT_URI' => '??????????????????',
'AUTHORIZATION_ENDPOINT' => 'https---sso.mydomain.de/realms/myrealm/protocol/openid-connect/auth',
'TOKEN_ENDPOINT' => 'https---sso.mydomain.de/realms/myrealm/protocol/openid-connect/token',
// 'ACCESS_TOKENTYPE' => OAuth2\Client::ACCESS_TOKEN_BEARER,
);

I would appreciate any hints what else needs to be done and what link must be given for redirect.
PS I also use caddy as Proxy with TLS
PPS: read --- as :// .

Please Inloggen or Create an account to join the conversation.

Last edit: by juzi.
  • Page:
  • 1
Time to create page: 0.041 seconds
Copyright © 2025 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search