Adjust logic and remove panics from functional tests.
Update dex to comply with the changes to fieldnames and types of the client and provider metadata structs in coreos/go-oidc.