Grafana Use AWS Cognito oauth by generic

Hi, I would like to know how can oauth aws congito via generic/auth.
(I’m newbie to config them.)
I follow install oauth on this page : Grafana + Amazon Cognito (OAuth)の設定手順 - nikuyoshiのブログ
and not success that have error no response from redirect_url and mismatch state
I don’t know how to do next, please guide me how to oauth aws cognito by generic