Can we authenticate apache server with aws cognito?

I am trying to do authentication apache web page with aws cognito .
This all mean I am newbie doing authentication and hosting . I am tring to do authentication with mod_auth_openidc package . I am not sure in different conf file . I have been editing httpd.conf and auth_openidc.conf but got failed every time.