03-Mar-2023 07:01 - edited 03-Mar-2023 10:35
Hi,
I need to clarify one thing with oAuth redirect
I have website https://xxxx.cz/neco/jesteneco/ - this website is protected by oAuth Google authorization but if the user is successfully logged in by oAuth, he is then redirected only to https://xxxx.cz (the path is missing) .
I thought I'd change in APM oAuth Client - Redirection URI to https://xxxx.cz/neco/jesteneco/oauth/client/redirect
and of course I'll change it on the google side
But I get an error:
" 01071b32:3: Invalid Redirect URI (https://%{session.server.network.name}/neco/jesteneco/oauth/client/redirect) in OAuth Client (/Common/Google_OAuth_com_act_oauth_client_ag). Path must be '/oauth/client/redirect'. "
Do you have any idea how I should redirect user to https://xxxx.cz/neco/jesteneco/ after oAuth by Google ?
Thank you
05-Mar-2023 22:59
The redirect url must always be '/oauth/client/redirect'. As I understand this is the hardcoded URI APM uses. After this redirect there should be another redirect from this uri to '/'. You must change this redirect.