protected override Task <Uri> GenerateAuthorizeUriAsync(HttpContext httpContext, Guid stateIdentifier) { NullGuard.NotNull(httpContext, nameof(httpContext)); IGetAuthorizeUriForMicrosoftGraphQuery query = new GetAuthorizeUriForMicrosoftGraphQuery(GetRedirectUriForMicrosoftGraph(httpContext.Request), stateIdentifier); return(QueryBus.QueryAsync <IGetAuthorizeUriForMicrosoftGraphQuery, Uri>(query)); }