Refactored OIDC authorize controller