Tempo App cannot get Authorisation code

Hello, I am developing some integration and I need to get an authorization code from Tempo app in Jira. The OAuth 2.0 was created in the Tempo->Settings but i do not know what i should put under the redirect_uri ? I thing this is my main problem. My Tempo app was on this path:

https://xxxx-xxxxxxxxx.atlassian.net/plugins/servlet/ac/io.tempo.jira/tempo-app#!/my-work/week?type=TIME

i tried to put redirect_uri as https://xxx-xxxxxx.atlassian.net/tempo/oauth and after i open in browser link like this:

https://xxx-xxxxxx.atlassian.net/plugins/servlet/ac/io.tempo.jira/oauth-authorize/?redirect_uri=https://xxxx-xxxxxx.atlassian.net/tempo/oauth&client_id=xxxxxxxxxxxxxxxxx
I get a option to confirm to connect the app, after this i get success and than it ask me
Click ''Onwards!'' to connect test with Tempo and when i click i get Error 404 page cannot be found