Login with keycloak

I built an application and login through keycloak.
I used keycloak with ssl but it shows errors when I try to login my application.

    raise FlowExchangeError(error_msg)
oauth2client.client.FlowExchangeError: Invalid response: 301.
127.0.0.1 - - [05/Nov/2020 00:13:50] "GET /oidc_callback?state=eyJjc3JmX3Rva2VuIjogIjMtbE9LNDJUVHhnelJ2OWFEZEsxbHctQkg3UnRVdkpBIiwgImRlc3RpbmF0aW9uIjogImV5SmhiR2NpT2lKSVV6VXhNaUo5LkltaDBkSEE2THk5c2IyTmhiR2h2YzNRNk5UQXdNQzlzYjJkcGJpSS4zZEJKQjZ5TUtRSFlBbkJzRnlpNVU4RjVNeDFYNFNBVW5qSWQzVUJVY0V5MllnZkNfQVV5UTJFV1J5YmJoQjF1QUowQUZQTGdaSXJpdUQyenhTUjN0dyJ9&session_state=cbfce674-a7ea-4f37-bb3b-751e7cbebe88&code=a94a4ceb-5020-474a-be87-99c6a30ed51e.cbfce674-a7ea-4f37-bb3b-751e7cbebe88.beaa26f0-cad3-45eb-bc49-f192e89262a2 HTTP/1.1" 500 -

How can I fix it?

1 Like