-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect after authentication on http://localhost without / #501
Comments
At the end of the authentication flow, your browser receives a |
As the Location looks empty, the I suppose Could you try this code ? host_url = os.getenv('HOST_URL', "http://localhost:33081")
if host_url is not None and host_url.strip() == "":
host_url="http://localhost:33081"
oidc = writer.auth.Oidc(
client_id="xxx",
client_secret="xxxx",
host_url=host_url,
url_authorize="http://localhost:33050/connect/authorize",
url_oauthtoken="http://localhost:33050/connect/token",
url_userinfo='http://localhost:33050/connect/userinfo',
scope="openid profile common"
) |
no smae issue the app doesn't redirect to http://localhost:33081/. If i delete the part after / the app loads I have found after redirect I have this cookies Th session cokie is deleted and app loads |
I have found that in auth.py on line 213 if host_url_path='' then the redirect doesn't work but if host_url_path='/' works |
I will investigate what we can do to make this situation more easy to handle. |
the fix has been released in pip install writer==0.7.0rc2 |
thanks I will test |
After a succesful auth the app doesn't redirect to the base url
I redirecting to /authorize?code= and is displaying a white page
If I delete /authorize?code= the app loads
What do i have to do ?
oidc = writer.auth.Oidc(
client_id="xxx",
client_secret="xxxx",
host_url=os.getenv('HOST_URL', "http://localhost:33081"),
url_authorize="http://localhost:33050/connect/authorize",
url_oauthtoken="http://localhost:33050/connect/token",
url_userinfo='http://localhost:33050/connect/userinfo',
scope="openid profile common"
)
This is my settings
The text was updated successfully, but these errors were encountered: